Exemple #1
0
        private ArmElement ComposeResourceTypeElement()
        {
            string @namespace = Namespace.CoerceToString();
            string type       = Type.CoerceToString();

            return(new ArmStringLiteral($"{@namespace}/{type}"));
        }
Exemple #2
0
        private bool TryGetResourceSchema(out ResourceSchema resourceSchema)
        {
            if (_resourceSchema is not null)
            {
                resourceSchema = _resourceSchema;
                return(true);
            }

            if (ResourceIndex.SharedInstance.TryGetResourceSchema(
                    Namespace?.CoerceToString(),
                    Type?.CoerceToString(),
                    ApiVersion?.CoerceToString(),
                    out resourceSchema))
            {
                _resourceSchema = resourceSchema;
                return(true);
            }

            return(false);
        }