-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Octokit Bot
committed
Mar 8, 2024
1 parent
eace742
commit 14bc04e
Showing
3 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
pkg/github/repos/item_item_private_vulnerability_reporting_get_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package repos | ||
|
||
import ( | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" | ||
) | ||
|
||
type ItemItemPrivateVulnerabilityReportingGetResponse struct { | ||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
additionalData map[string]any | ||
// Whether or not private vulnerability reporting is enabled for the repository. | ||
enabled *bool | ||
} | ||
// NewItemItemPrivateVulnerabilityReportingGetResponse instantiates a new ItemItemPrivateVulnerabilityReportingGetResponse and sets the default values. | ||
func NewItemItemPrivateVulnerabilityReportingGetResponse()(*ItemItemPrivateVulnerabilityReportingGetResponse) { | ||
m := &ItemItemPrivateVulnerabilityReportingGetResponse{ | ||
} | ||
m.SetAdditionalData(make(map[string]any)) | ||
return m | ||
} | ||
// CreateItemItemPrivateVulnerabilityReportingGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value | ||
// returns a Parsable when successful | ||
func CreateItemItemPrivateVulnerabilityReportingGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { | ||
return NewItemItemPrivateVulnerabilityReportingGetResponse(), nil | ||
} | ||
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
// returns a map[string]any when successful | ||
func (m *ItemItemPrivateVulnerabilityReportingGetResponse) GetAdditionalData()(map[string]any) { | ||
return m.additionalData | ||
} | ||
// GetEnabled gets the enabled property value. Whether or not private vulnerability reporting is enabled for the repository. | ||
// returns a *bool when successful | ||
func (m *ItemItemPrivateVulnerabilityReportingGetResponse) GetEnabled()(*bool) { | ||
return m.enabled | ||
} | ||
// GetFieldDeserializers the deserialization information for the current model | ||
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful | ||
func (m *ItemItemPrivateVulnerabilityReportingGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { | ||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) | ||
res["enabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { | ||
val, err := n.GetBoolValue() | ||
if err != nil { | ||
return err | ||
} | ||
if val != nil { | ||
m.SetEnabled(val) | ||
} | ||
return nil | ||
} | ||
return res | ||
} | ||
// Serialize serializes information the current object | ||
func (m *ItemItemPrivateVulnerabilityReportingGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { | ||
{ | ||
err := writer.WriteBoolValue("enabled", m.GetEnabled()) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
{ | ||
err := writer.WriteAdditionalData(m.GetAdditionalData()) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
} | ||
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
func (m *ItemItemPrivateVulnerabilityReportingGetResponse) SetAdditionalData(value map[string]any)() { | ||
m.additionalData = value | ||
} | ||
// SetEnabled sets the enabled property value. Whether or not private vulnerability reporting is enabled for the repository. | ||
func (m *ItemItemPrivateVulnerabilityReportingGetResponse) SetEnabled(value *bool)() { | ||
m.enabled = value | ||
} | ||
type ItemItemPrivateVulnerabilityReportingGetResponseable interface { | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable | ||
GetEnabled()(*bool) | ||
SetEnabled(value *bool)() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters