Skip to content

Commit

Permalink
FEAT: Added/Updated [composed, instantiates, ParseCopilotOrganization…
Browse files Browse the repository at this point in the history
…Details_cli, SerializeCopilotOrganizationDetails_cli, ParseCopilotOrganizationDetails_ide_chat, SerializeCopilotOrganizationDetails_ide_chat, ParseCopilotOrganizationDetails_platform_chat, SerializeCopilotOrganizationDetails_platform_chat]| Removed [composed, instantiates] (#45)
  • Loading branch information
octokitbot authored Feb 28, 2024
1 parent c865226 commit 73a734b
Show file tree
Hide file tree
Showing 1,994 changed files with 16,903 additions and 4,825 deletions.
6 changes: 6 additions & 0 deletions pkg/github/advisories/advisories_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type AdvisoriesRequestBuilderGetQueryParameters struct {
Updated *string `uriparametername:"updated"`
}
// ByGhsa_id gets an item from the github.com/octokit/go-sdk/pkg/github/.advisories.item collection
// returns a *WithGhsa_ItemRequestBuilder when successful
func (m *AdvisoriesRequestBuilder) ByGhsa_id(ghsa_id string)(*WithGhsa_ItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.BaseRequestBuilder.PathParameters {
Expand All @@ -70,6 +71,9 @@ func NewAdvisoriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263
return NewAdvisoriesRequestBuilderInternal(urlParams, requestAdapter)
}
// Get lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)."
// returns a []GlobalAdvisoryable when successful
// returns a ValidationErrorSimple error when the service returns a 422 status code
// returns a BasicError error when the service returns a 429 status code
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/security-advisories/global-advisories#list-global-security-advisories
Expand All @@ -95,13 +99,15 @@ func (m *AdvisoriesRequestBuilder) Get(ctx context.Context, requestConfiguration
return val, nil
}
// ToGetRequestInformation lists all global security advisories that match the specified parameters. If no other parameters are defined, the request will return only GitHub-reviewed advisories that are not malware.By default, all responses will exclude advisories for malware, because malware are not standard vulnerabilities. To list advisories for malware, you must include the `type` parameter in your request, with the value `malware`. For more information about the different types of security advisories, see "[About the GitHub Advisory database](https://docs.github.com/code-security/security-advisories/global-security-advisories/about-the-github-advisory-database#about-types-of-security-advisories)."
// returns a *RequestInformation when successful
func (m *AdvisoriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[AdvisoriesRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration)
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
// returns a *AdvisoriesRequestBuilder when successful
func (m *AdvisoriesRequestBuilder) WithUrl(rawUrl string)(*AdvisoriesRequestBuilder) {
return NewAdvisoriesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package advisories
import (
"errors"
)
//
type GetDirectionQueryParameterType int

const (
Expand Down
5 changes: 2 additions & 3 deletions pkg/github/advisories/get_ecosystem_query_parameter_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ package advisories
import (
"errors"
)
//
type GetEcosystemQueryParameterType int

const (
ACTIONS_GETECOSYSTEMQUERYPARAMETERTYPE GetEcosystemQueryParameterType = iota
COMPOSER_GETECOSYSTEMQUERYPARAMETERTYPE
ERLANG_GETECOSYSTEMQUERYPARAMETERTYPE
GOESCAPED_GETECOSYSTEMQUERYPARAMETERTYPE
GO_GETECOSYSTEMQUERYPARAMETERTYPE
MAVEN_GETECOSYSTEMQUERYPARAMETERTYPE
NPM_GETECOSYSTEMQUERYPARAMETERTYPE
NUGET_GETECOSYSTEMQUERYPARAMETERTYPE
Expand All @@ -33,7 +32,7 @@ func ParseGetEcosystemQueryParameterType(v string) (any, error) {
case "erlang":
result = ERLANG_GETECOSYSTEMQUERYPARAMETERTYPE
case "go":
result = GOESCAPED_GETECOSYSTEMQUERYPARAMETERTYPE
result = GO_GETECOSYSTEMQUERYPARAMETERTYPE
case "maven":
result = MAVEN_GETECOSYSTEMQUERYPARAMETERTYPE
case "npm":
Expand Down
1 change: 0 additions & 1 deletion pkg/github/advisories/get_severity_query_parameter_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package advisories
import (
"errors"
)
//
type GetSeverityQueryParameterType int

const (
Expand Down
1 change: 0 additions & 1 deletion pkg/github/advisories/get_sort_query_parameter_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package advisories
import (
"errors"
)
//
type GetSortQueryParameterType int

const (
Expand Down
1 change: 0 additions & 1 deletion pkg/github/advisories/get_type_query_parameter_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package advisories
import (
"errors"
)
//
type GetTypeQueryParameterType int

const (
Expand Down
4 changes: 4 additions & 0 deletions pkg/github/advisories/with_ghsa_item_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ func NewWithGhsa_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee
return NewWithGhsa_ItemRequestBuilderInternal(urlParams, requestAdapter)
}
// Get gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
// returns a GlobalAdvisoryable when successful
// returns a BasicError error when the service returns a 404 status code
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/security-advisories/global-advisories#get-a-global-security-advisory
Expand All @@ -45,13 +47,15 @@ func (m *WithGhsa_ItemRequestBuilder) Get(ctx context.Context, requestConfigurat
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.GlobalAdvisoryable), nil
}
// ToGetRequestInformation gets a global security advisory using its GitHub Security Advisory (GHSA) identifier.
// returns a *RequestInformation when successful
func (m *WithGhsa_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration)
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
// returns a *WithGhsa_ItemRequestBuilder when successful
func (m *WithGhsa_ItemRequestBuilder) WithUrl(rawUrl string)(*WithGhsa_ItemRequestBuilder) {
return NewWithGhsa_ItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter);
}
Loading

0 comments on commit 73a734b

Please sign in to comment.