Skip to content

Commit

Permalink
feat: [Breaking] Adds BranchRestrictionPolicy [ClientId], docs updates (
Browse files Browse the repository at this point in the history
#44)

* New updates to generated code

* New updates to generated code
  • Loading branch information
octokitbot authored Aug 21, 2024
1 parent c57ab9a commit 9678e6a
Show file tree
Hide file tree
Showing 8 changed files with 2,180 additions and 2,186 deletions.
4,317 changes: 2,141 additions & 2,176 deletions pkg/github/.kiota.log

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type ItemSecretScanningAlertsRequestBuilderGetQueryParameters struct {
Per_page *int32 `uriparametername:"per_page"`
// 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`.
Resolution *string `uriparametername:"resolution"`
// A comma-separated list of secret types to return. By default all secret types are returned.See "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)"for a complete list of secret types.
// 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/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types.
Secret_type *string `uriparametername:"secret_type"`
// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.
Sort *ie731c1b19a2e5cc53591a2f3e26c1721bd2d17fb9da2b8efca9e1e81c4c05962.GetSortQueryParameterType `uriparametername:"sort"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "7A1A56113B7CD6BAECE551AA2899C89F63DF4B382A1BE3B559BE575E4B270523A48A30AF096D2D1A9CCA014DD10863E754DC78084B48DEB85ACC6404333A22FF",
"descriptionHash": "F43CDC6F6D77A361F42CD6F96DA23A7F84F462A11BCE7232285B730F8595E4F8A776593F7FBDABDAE8F908288A9ABB0ED80ACCD34B7781224C0029FF3FE92354",
"descriptionLocation": "../../../../../schemas/ghes-3.13.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down
29 changes: 29 additions & 0 deletions pkg/github/models/branch_restriction_policy_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
type BranchRestrictionPolicy_apps struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The client_id property
client_id *string
// The created_at property
created_at *string
// The description property
Expand Down Expand Up @@ -49,6 +51,11 @@ func CreateBranchRestrictionPolicy_appsFromDiscriminatorValue(parseNode i878a80d
func (m *BranchRestrictionPolicy_apps) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetClientId gets the client_id property value. The client_id property
// returns a *string when successful
func (m *BranchRestrictionPolicy_apps) GetClientId()(*string) {
return m.client_id
}
// GetCreatedAt gets the created_at property value. The created_at property
// returns a *string when successful
func (m *BranchRestrictionPolicy_apps) GetCreatedAt()(*string) {
Expand All @@ -73,6 +80,16 @@ func (m *BranchRestrictionPolicy_apps) GetExternalUrl()(*string) {
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *BranchRestrictionPolicy_apps) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["client_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetClientId(val)
}
return nil
}
res["created_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand Down Expand Up @@ -243,6 +260,12 @@ func (m *BranchRestrictionPolicy_apps) GetUpdatedAt()(*string) {
}
// Serialize serializes information the current object
func (m *BranchRestrictionPolicy_apps) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
err := writer.WriteStringValue("client_id", m.GetClientId())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("created_at", m.GetCreatedAt())
if err != nil {
Expand Down Expand Up @@ -327,6 +350,10 @@ func (m *BranchRestrictionPolicy_apps) Serialize(writer i878a80d2330e89d26896388
func (m *BranchRestrictionPolicy_apps) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetClientId sets the client_id property value. The client_id property
func (m *BranchRestrictionPolicy_apps) SetClientId(value *string)() {
m.client_id = value
}
// SetCreatedAt sets the created_at property value. The created_at property
func (m *BranchRestrictionPolicy_apps) SetCreatedAt(value *string)() {
m.created_at = value
Expand Down Expand Up @@ -378,6 +405,7 @@ func (m *BranchRestrictionPolicy_apps) SetUpdatedAt(value *string)() {
type BranchRestrictionPolicy_appsable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetClientId()(*string)
GetCreatedAt()(*string)
GetDescription()(*string)
GetEvents()([]string)
Expand All @@ -390,6 +418,7 @@ type BranchRestrictionPolicy_appsable interface {
GetPermissions()(BranchRestrictionPolicy_apps_permissionsable)
GetSlug()(*string)
GetUpdatedAt()(*string)
SetClientId(value *string)()
SetCreatedAt(value *string)()
SetDescription(value *string)()
SetEvents(value []string)()
Expand Down
6 changes: 3 additions & 3 deletions pkg/github/models/organization_secret_scanning_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type OrganizationSecretScanningAlert struct {
secret *string
// The type of secret that secret scanning detected.
secret_type *string
// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."
// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
secret_type_display_name *string
// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.
state *SecretScanningAlertState
Expand Down Expand Up @@ -330,7 +330,7 @@ func (m *OrganizationSecretScanningAlert) GetSecret()(*string) {
func (m *OrganizationSecretScanningAlert) GetSecretType()(*string) {
return m.secret_type
}
// GetSecretTypeDisplayName gets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."
// GetSecretTypeDisplayName gets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
// returns a *string when successful
func (m *OrganizationSecretScanningAlert) GetSecretTypeDisplayName()(*string) {
return m.secret_type_display_name
Expand Down Expand Up @@ -512,7 +512,7 @@ func (m *OrganizationSecretScanningAlert) SetSecret(value *string)() {
func (m *OrganizationSecretScanningAlert) SetSecretType(value *string)() {
m.secret_type = value
}
// SetSecretTypeDisplayName sets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."
// SetSecretTypeDisplayName sets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
func (m *OrganizationSecretScanningAlert) SetSecretTypeDisplayName(value *string)() {
m.secret_type_display_name = value
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/github/models/secret_scanning_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type SecretScanningAlert struct {
secret *string
// The type of secret that secret scanning detected.
secret_type *string
// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."
// User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
secret_type_display_name *string
// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.
state *SecretScanningAlertState
Expand Down Expand Up @@ -313,7 +313,7 @@ func (m *SecretScanningAlert) GetSecret()(*string) {
func (m *SecretScanningAlert) GetSecretType()(*string) {
return m.secret_type
}
// GetSecretTypeDisplayName gets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."
// GetSecretTypeDisplayName gets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
// returns a *string when successful
func (m *SecretScanningAlert) GetSecretTypeDisplayName()(*string) {
return m.secret_type_display_name
Expand Down Expand Up @@ -485,7 +485,7 @@ func (m *SecretScanningAlert) SetSecret(value *string)() {
func (m *SecretScanningAlert) SetSecretType(value *string)() {
m.secret_type = value
}
// SetSecretTypeDisplayName sets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."
// SetSecretTypeDisplayName sets the secret_type_display_name property value. User-friendly name for the detected secret, matching the `secret_type`.For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."
func (m *SecretScanningAlert) SetSecretTypeDisplayName(value *string)() {
m.secret_type_display_name = value
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ItemSecretScanningAlertsRequestBuilderGetQueryParameters struct {
Per_page *int32 `uriparametername:"per_page"`
// 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`.
Resolution *string `uriparametername:"resolution"`
// A comma-separated list of secret types to return. By default all secret types are returned.See "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)"for a complete list of secret types.
// 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/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types.
Secret_type *string `uriparametername:"secret_type"`
// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.
Sort *i7424a7e7ed210907f3a1fcdf8aa90dffa3a9669350059ae8849bd2aba37a1b90.GetSortQueryParameterType `uriparametername:"sort"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ItemItemSecretScanningAlertsRequestBuilderGetQueryParameters struct {
Per_page *int32 `uriparametername:"per_page"`
// 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`.
Resolution *string `uriparametername:"resolution"`
// A comma-separated list of secret types to return. By default all secret types are returned.See "[Secret scanning patterns](https://docs.github.com/[email protected]/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)"for a complete list of secret types.
// 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/[email protected]/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)"for a complete list of secret types.
Secret_type *string `uriparametername:"secret_type"`
// The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.
Sort *ic653fdac08035cb8bfc7dabb4472628f1539065e4c88c3d7cb1a363ab7fa780f.GetSortQueryParameterType `uriparametername:"sort"`
Expand Down

0 comments on commit 9678e6a

Please sign in to comment.