Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 53 additions & 41 deletions clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ final class Hydrators implements ObjectMapper
private Internal\Hydrator\WebHook\RepositoryVulnerabilityAlert|null $webHook🪝RepositoryVulnerabilityAlert = null;
private Internal\Hydrator\WebHook\SecretScanningAlert|null $webHook🪝SecretScanningAlert = null;
private Internal\Hydrator\WebHook\SecretScanningAlertLocation|null $webHook🪝SecretScanningAlertLocation = null;
private Internal\Hydrator\WebHook\SecretScanningScan|null $webHook🪝SecretScanningScan = null;
private Internal\Hydrator\WebHook\SecurityAdvisory|null $webHook🪝SecurityAdvisory = null;
private Internal\Hydrator\WebHook\SecurityAndAnalysis|null $webHook🪝SecurityAndAnalysis = null;
private Internal\Hydrator\WebHook\Sponsorship|null $webHook🪝Sponsorship = null;
Expand Down Expand Up @@ -1165,6 +1166,7 @@ public function hydrateObject(string $className, array $payload): object
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertCreate', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksAlert', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksAlert\\Dismisser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss\\Alert', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss\\Alert\\Dismisser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertReopen', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertResolve', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertResolve\\Alert', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertResolve\\Alert\\Dismisser' => $this->getObjectMapperWebHook🪝RepositoryVulnerabilityAlert()->hydrateObject($className, $payload),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningAlertWebhook', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertPubliclyLeaked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertResolved', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertValidated' => $this->getObjectMapperWebHook🪝SecretScanningAlert()->hydrateObject($className, $payload),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertLocationCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningLocation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->getObjectMapperWebHook🪝SecretScanningAlertLocation()->hydrateObject($className, $payload),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningScanCompleted' => $this->getObjectMapperWebHook🪝SecretScanningScan()->hydrateObject($className, $payload),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryPublished', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSecurityAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSecurityAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryUpdated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryWithdrawn', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryWithdrawn\\SecurityAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryWithdrawn\\SecurityAdvisory\\Cvss' => $this->getObjectMapperWebHook🪝SecurityAdvisory()->hydrateObject($className, $payload),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAndAnalysis', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAndAnalysis\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAndAnalysis\\Changes\\From' => $this->getObjectMapperWebHook🪝SecurityAndAnalysis()->hydrateObject($className, $payload),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Maintainer', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Sponsor', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Sponsorable', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Tier', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipEdited\\Changes\\PrivacyLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipPendingCancellation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipPendingTierChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges8', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges8\\Tier', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges8\\Tier\\From', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipTierChanged' => $this->getObjectMapperWebHook🪝Sponsorship()->hydrateObject($className, $payload),
Expand Down Expand Up @@ -1550,6 +1552,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertCreate', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksAlert', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksAlert\\Dismisser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss\\Alert', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertDismiss\\Alert\\Dismisser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertReopen', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertResolve', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertResolve\\Alert', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookRepositoryVulnerabilityAlertResolve\\Alert\\Dismisser' => $this->getObjectMapperWebHook🪝RepositoryVulnerabilityAlert()->serializeObject($object),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningAlertWebhook', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertPubliclyLeaked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertResolved', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertValidated' => $this->getObjectMapperWebHook🪝SecretScanningAlert()->serializeObject($object),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertLocationCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningLocation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->getObjectMapperWebHook🪝SecretScanningAlertLocation()->serializeObject($object),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecretScanningScanCompleted' => $this->getObjectMapperWebHook🪝SecretScanningScan()->serializeObject($object),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryPublished', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSecurityAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSecurityAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryUpdated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryWithdrawn', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryWithdrawn\\SecurityAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAdvisoryWithdrawn\\SecurityAdvisory\\Cvss' => $this->getObjectMapperWebHook🪝SecurityAdvisory()->serializeObject($object),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAndAnalysis', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAndAnalysis\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSecurityAndAnalysis\\Changes\\From' => $this->getObjectMapperWebHook🪝SecurityAndAnalysis()->serializeObject($object),
'\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Maintainer', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Sponsor', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Sponsorable', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksSponsorship\\Tier', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipEdited\\Changes\\PrivacyLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipPendingCancellation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipPendingTierChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges8', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges8\\Tier', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges8\\Tier\\From', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookSponsorshipTierChanged' => $this->getObjectMapperWebHook🪝Sponsorship()->serializeObject($object),
Expand Down Expand Up @@ -8669,6 +8672,15 @@ public function getObjectMapperWebHook🪝SecretScanningAlertLocation(): Interna
return $this->webHook🪝SecretScanningAlertLocation;
}

public function getObjectMapperWebHook🪝SecretScanningScan(): Internal\Hydrator\WebHook\SecretScanningScan
{
if ($this->webHook🪝SecretScanningScan instanceof Internal\Hydrator\WebHook\SecretScanningScan === false) {
$this->webHook🪝SecretScanningScan = new Internal\Hydrator\WebHook\SecretScanningScan();
}

return $this->webHook🪝SecretScanningScan;
}

public function getObjectMapperWebHook🪝SecurityAdvisory(): Internal\Hydrator\WebHook\SecurityAdvisory
{
if ($this->webHook🪝SecurityAdvisory instanceof Internal\Hydrator\WebHook\SecurityAdvisory === false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ final class ListAlertsForEnterprise
private string $enterprise;
/**Set to `open` or `resolved` to only list secret scanning alerts in a specific state. **/
private string $state;
/**A comma-separated list of secret types to return. By default all secret types are returned.
See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"
for a complete list of secret types. **/
/**A comma-separated list of secret types to return. All default secret patterns are returned. To return experimental patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. **/
private string $secretType;
/**A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. **/
private string $resolution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ final class ListAlertsForOrg
private string $org;
/**Set to `open` or `resolved` to only list secret scanning alerts in a specific state. **/
private string $state;
/**A comma-separated list of secret types to return. By default all secret types are returned.
See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"
for a complete list of secret types. **/
/**A comma-separated list of secret types to return. All default secret patterns are returned. To return experimental patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. **/
private string $secretType;
/**A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. **/
private string $resolution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ final class ListAlertsForOrgListing
private string $org;
/**Set to `open` or `resolved` to only list secret scanning alerts in a specific state. **/
private string $state;
/**A comma-separated list of secret types to return. By default all secret types are returned.
See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"
for a complete list of secret types. **/
/**A comma-separated list of secret types to return. All default secret patterns are returned. To return experimental patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. **/
private string $secretType;
/**A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. **/
private string $resolution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ final class ListAlertsForRepo
private string $repo;
/**Set to `open` or `resolved` to only list secret scanning alerts in a specific state. **/
private string $state;
/**A comma-separated list of secret types to return. By default all secret types are returned.
See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"
for a complete list of secret types. **/
/**A comma-separated list of secret types to return. All default secret patterns are returned. To return experimental patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. **/
private string $secretType;
/**A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. **/
private string $resolution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ final class ListAlertsForRepoListing
private string $repo;
/**Set to `open` or `resolved` to only list secret scanning alerts in a specific state. **/
private string $state;
/**A comma-separated list of secret types to return. By default all secret types are returned.
See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"
for a complete list of secret types. **/
/**A comma-separated list of secret types to return. All default secret patterns are returned. To return experimental patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. **/
private string $secretType;
/**A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. **/
private string $resolution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $enterprise, string $customPropertyName, array $params): CustomProperty
{
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\EnterpriseAdmin\CreateOrUpdateEnterpriseCustomProperty($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $enterprise, $customPropertyName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, string $customPropertyName, array $params): CustomProperty
{
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\CreateOrUpdateCustomProperty($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName);
Expand Down
Loading
Loading