public async Task GetAsync()

in src/Azure.Deployments.Extensibility.Providers.Kubernetes/Models/KubernetesResource.cs [37:55]


        public async Task<JsonElement> GetAsync(CancellationToken cancellationToken)
        {
            var result = this.Namespace is not null
                ? await this.Kubernetes.CustomObjects.GetNamespacedCustomObjectAsync(
                    this.Group,
                    this.Version,
                    this.Namespace,
                    this.Plural,
                    this.Properties.Metadata.Name,
                    cancellationToken)
                : await this.Kubernetes.CustomObjects.GetClusterCustomObjectAsync(
                    this.Group,
                    this.Version,
                    this.Plural,
                    this.Properties.Metadata.Name,
                    cancellationToken);

            return ExtensibilityJsonSerializer.Default.SerializeToElement(result);
        }