Skip to content

Commit

Permalink
docs: [FeedsRequestBuilder, StarRequestBuilder, Orgs, Teams, Repos, J…
Browse files Browse the repository at this point in the history
…obs, Actions, Workflows, CheckRuns, CheckSuites], feat: [CodeScanningAlertRuleSummary.CodeScanningAlertRuleSummary_security_severity_level, CodeScanningOrganizationAlertItems.CodeScanningAlertRuleSummary], fix: [Deployment.Deployment_payload] (#24)
  • Loading branch information
octokitbot committed Jan 2, 2024
1 parent 12b96d0 commit d37df91
Show file tree
Hide file tree
Showing 27 changed files with 118 additions and 896 deletions.
4 changes: 2 additions & 2 deletions pkg/github/feeds/feeds_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewFeedsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb
urlParams["request-raw-url"] = rawUrl
return NewFeedsRequestBuilderInternal(urlParams, requestAdapter)
}
// Get gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
// Get gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/activity/feeds#get-feeds
Expand All @@ -48,7 +48,7 @@ func (m *FeedsRequestBuilder) Get(ctx context.Context, requestConfiguration *Fee
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Feedable), nil
}
// ToGetRequestInformation gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
// ToGetRequestInformation gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
func (m *FeedsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FeedsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "ECEC7E8E83F6CAD8094CE361D9A951817C57875830FE7F6014E329B1E186A49742F4FCB88388843D82A31F821BA91C2FE3CEDB4DD02B3FA84BD532800C8E00F3",
"descriptionHash": "8BF7FF7DA89AAF459FE3112D9C74DBE42A0CAC75CF8B7BB5E35495E6641B010F0D8F2C63CDAF197F64E36EE1995C0408B7D76A7FF35B0F04D020D76506285DBC",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.9.1",
"kiotaVersion": "1.10.0-preview.202312210001",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk/pkg/github/",
"language": "Go",
Expand Down
101 changes: 8 additions & 93 deletions pkg/github/models/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Deployment struct {
// The original_environment property
original_environment *string
// The payload property
payload Deployment_Deployment_payloadable
payload *string
// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
performed_via_github_app NullableIntegrationable
// Specifies if the given environment is one that end-users directly interact with. Default: false.
Expand All @@ -46,91 +46,6 @@ type Deployment struct {
// The url property
url *string
}
// Deployment_Deployment_payload composed type wrapper for classes deployment_payloadMember1, string
type Deployment_Deployment_payload struct {
// Composed type representation for type deployment_payloadMember1
deployment_payloadMember1 Deployment_payloadMember1able
// Composed type representation for type string
string *string
}
// NewDeployment_Deployment_payload instantiates a new deployment_payload and sets the default values.
func NewDeployment_Deployment_payload()(*Deployment_Deployment_payload) {
m := &Deployment_Deployment_payload{
}
return m
}
// CreateDeployment_Deployment_payloadFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateDeployment_Deployment_payloadFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
result := NewDeployment_Deployment_payload()
if parseNode != nil {
mappingValueNode, err := parseNode.GetChildNode("")
if err != nil {
return nil, err
}
if mappingValueNode != nil {
mappingValue, err := mappingValueNode.GetStringValue()
if err != nil {
return nil, err
}
if mappingValue != nil {
}
}
}
if val, err := parseNode.GetStringValue(); val != nil {
if err != nil {
return nil, err
}
result.SetString(val)
}
return result, nil
}
// GetDeploymentPayloadMember1 gets the deployment_payloadMember1 property value. Composed type representation for type deployment_payloadMember1
func (m *Deployment_Deployment_payload) GetDeploymentPayloadMember1()(Deployment_payloadMember1able) {
return m.deployment_payloadMember1
}
// GetFieldDeserializers the deserialization information for the current model
func (m *Deployment_Deployment_payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
}
// GetIsComposedType determines if the current object is a wrapper around a composed type
func (m *Deployment_Deployment_payload) GetIsComposedType()(bool) {
return true
}
// GetString gets the string property value. Composed type representation for type string
func (m *Deployment_Deployment_payload) GetString()(*string) {
return m.string
}
// Serialize serializes information the current object
func (m *Deployment_Deployment_payload) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetDeploymentPayloadMember1() != nil {
err := writer.WriteObjectValue("", m.GetDeploymentPayloadMember1())
if err != nil {
return err
}
} else if m.GetString() != nil {
err := writer.WriteStringValue("", m.GetString())
if err != nil {
return err
}
}
return nil
}
// SetDeploymentPayloadMember1 sets the deployment_payloadMember1 property value. Composed type representation for type deployment_payloadMember1
func (m *Deployment_Deployment_payload) SetDeploymentPayloadMember1(value Deployment_payloadMember1able)() {
m.deployment_payloadMember1 = value
}
// SetString sets the string property value. Composed type representation for type string
func (m *Deployment_Deployment_payload) SetString(value *string)() {
m.string = value
}
// Deployment_Deployment_payloadable
type Deployment_Deployment_payloadable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetDeploymentPayloadMember1()(Deployment_payloadMember1able)
GetString()(*string)
SetDeploymentPayloadMember1(value Deployment_payloadMember1able)()
SetString(value *string)()
}
// NewDeployment instantiates a new deployment and sets the default values.
func NewDeployment()(*Deployment) {
m := &Deployment{
Expand Down Expand Up @@ -236,12 +151,12 @@ func (m *Deployment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268
return nil
}
res["payload"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateDeployment_Deployment_payloadFromDiscriminatorValue)
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetPayload(val.(Deployment_Deployment_payloadable))
m.SetPayload(val)
}
return nil
}
Expand Down Expand Up @@ -360,7 +275,7 @@ func (m *Deployment) GetOriginalEnvironment()(*string) {
return m.original_environment
}
// GetPayload gets the payload property value. The payload property
func (m *Deployment) GetPayload()(Deployment_Deployment_payloadable) {
func (m *Deployment) GetPayload()(*string) {
return m.payload
}
// GetPerformedViaGithubApp gets the performed_via_github_app property value. GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
Expand Down Expand Up @@ -448,7 +363,7 @@ func (m *Deployment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c
}
}
{
err := writer.WriteObjectValue("payload", m.GetPayload())
err := writer.WriteStringValue("payload", m.GetPayload())
if err != nil {
return err
}
Expand Down Expand Up @@ -554,7 +469,7 @@ func (m *Deployment) SetOriginalEnvironment(value *string)() {
m.original_environment = value
}
// SetPayload sets the payload property value. The payload property
func (m *Deployment) SetPayload(value Deployment_Deployment_payloadable)() {
func (m *Deployment) SetPayload(value *string)() {
m.payload = value
}
// SetPerformedViaGithubApp sets the performed_via_github_app property value. GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
Expand Down Expand Up @@ -608,7 +523,7 @@ type Deploymentable interface {
GetId()(*int32)
GetNodeId()(*string)
GetOriginalEnvironment()(*string)
GetPayload()(Deployment_Deployment_payloadable)
GetPayload()(*string)
GetPerformedViaGithubApp()(NullableIntegrationable)
GetProductionEnvironment()(*bool)
GetRef()(*string)
Expand All @@ -626,7 +541,7 @@ type Deploymentable interface {
SetId(value *int32)()
SetNodeId(value *string)()
SetOriginalEnvironment(value *string)()
SetPayload(value Deployment_Deployment_payloadable)()
SetPayload(value *string)()
SetPerformedViaGithubApp(value NullableIntegrationable)()
SetProductionEnvironment(value *bool)()
SetRef(value *string)()
Expand Down
Loading

0 comments on commit d37df91

Please sign in to comment.