public async Task PatchAsync()

in src/Azure.Deployments.Extensibility.Providers.Kubernetes/Models/KubernetesResource.cs [57:83]


        public async Task<JsonElement> PatchAsync(string? dryRun, CancellationToken cancellationToken)
        {
            var result = this.Namespace is not null
                ? await this.Kubernetes.CustomObjects.PatchNamespacedCustomObjectAsync(
                    this.Properties.ToV1Patch(),
                    this.Group,
                    this.Version,
                    this.Namespace,
                    this.Plural,
                    this.Properties.Metadata.Name,
                    fieldManager: "Bicep",
                    force: true,
                    dryRun: dryRun,
                    cancellationToken: cancellationToken)
                : await this.Kubernetes.CustomObjects.PatchClusterCustomObjectAsync(
                    this.Properties.ToV1Patch(),
                    this.Group,
                    this.Version,
                    this.Plural,
                    this.Properties.Metadata.Name,
                    fieldManager: "Bicep",
                    force: true,
                    dryRun: dryRun,
                    cancellationToken: cancellationToken);

            return ExtensibilityJsonSerializer.Default.SerializeToElement(result);
        }