-
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
Jan 13, 2024
1 parent
3241752
commit 737193b
Showing
11 changed files
with
298 additions
and
166 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
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
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,50 @@ | ||
package models | ||
|
||
import ( | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" | ||
) | ||
|
||
// FullRepository_custom_properties the custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. | ||
type FullRepository_custom_properties struct { | ||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
additionalData map[string]any | ||
} | ||
// NewFullRepository_custom_properties instantiates a new fullRepository_custom_properties and sets the default values. | ||
func NewFullRepository_custom_properties()(*FullRepository_custom_properties) { | ||
m := &FullRepository_custom_properties{ | ||
} | ||
m.SetAdditionalData(make(map[string]any)) | ||
return m | ||
} | ||
// CreateFullRepository_custom_propertiesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value | ||
func CreateFullRepository_custom_propertiesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { | ||
return NewFullRepository_custom_properties(), 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. | ||
func (m *FullRepository_custom_properties) GetAdditionalData()(map[string]any) { | ||
return m.additionalData | ||
} | ||
// GetFieldDeserializers the deserialization information for the current model | ||
func (m *FullRepository_custom_properties) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { | ||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) | ||
return res | ||
} | ||
// Serialize serializes information the current object | ||
func (m *FullRepository_custom_properties) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { | ||
{ | ||
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 *FullRepository_custom_properties) SetAdditionalData(value map[string]any)() { | ||
m.additionalData = value | ||
} | ||
// FullRepository_custom_propertiesable | ||
type FullRepository_custom_propertiesable interface { | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder | ||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable | ||
} |
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
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
37 changes: 37 additions & 0 deletions
37
pkg/github/models/org_custom_property_values_editable_by.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,37 @@ | ||
package models | ||
import ( | ||
"errors" | ||
) | ||
// Who can edit the values of the property | ||
type OrgCustomProperty_values_editable_by int | ||
|
||
const ( | ||
ORG_ACTORS_ORGCUSTOMPROPERTY_VALUES_EDITABLE_BY OrgCustomProperty_values_editable_by = iota | ||
ORG_AND_REPO_ACTORS_ORGCUSTOMPROPERTY_VALUES_EDITABLE_BY | ||
) | ||
|
||
func (i OrgCustomProperty_values_editable_by) String() string { | ||
return []string{"org_actors", "org_and_repo_actors"}[i] | ||
} | ||
func ParseOrgCustomProperty_values_editable_by(v string) (any, error) { | ||
result := ORG_ACTORS_ORGCUSTOMPROPERTY_VALUES_EDITABLE_BY | ||
switch v { | ||
case "org_actors": | ||
result = ORG_ACTORS_ORGCUSTOMPROPERTY_VALUES_EDITABLE_BY | ||
case "org_and_repo_actors": | ||
result = ORG_AND_REPO_ACTORS_ORGCUSTOMPROPERTY_VALUES_EDITABLE_BY | ||
default: | ||
return 0, errors.New("Unknown OrgCustomProperty_values_editable_by value: " + v) | ||
} | ||
return &result, nil | ||
} | ||
func SerializeOrgCustomProperty_values_editable_by(values []OrgCustomProperty_values_editable_by) []string { | ||
result := make([]string, len(values)) | ||
for i, v := range values { | ||
result[i] = v.String() | ||
} | ||
return result | ||
} | ||
func (i OrgCustomProperty_values_editable_by) isMultiValue() bool { | ||
return false | ||
} |
Oops, something went wrong.