Beispiel #1
0
        internal PolicyExemption(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _policyExemptionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string policyExemptionApiVersion);
            _policyExemptionRestClient = new PolicyExemptionsRestOperations(_policyExemptionClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, policyExemptionApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal PolicyExemptionCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
 {
     _policyExemptionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", PolicyExemptionResource.ResourceType.Namespace, Diagnostics);
     TryGetApiVersion(PolicyExemptionResource.ResourceType, out string policyExemptionApiVersion);
     _policyExemptionRestClient = new PolicyExemptionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, policyExemptionApiVersion);
 }
 internal PolicyExemptionCollection(ArmResource parent) : base(parent)
 {
     _policyExemptionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Resources", PolicyExemption.ResourceType.Namespace, DiagnosticOptions);
     ArmClient.TryGetApiVersion(PolicyExemption.ResourceType, out string policyExemptionApiVersion);
     _policyExemptionRestClient = new PolicyExemptionsRestOperations(_policyExemptionClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, policyExemptionApiVersion);
 }