diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index 005a3a7d..c9471c13 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "A1B7C373B4D1E9519AE4255139AFA918280FCDC9FC716B326D9F7FF3E1D35841E07461776C449533C9502D021E138C7EC038E47A19879C71618D05A494C135C9", + "descriptionHash": "8972B77B95704170D9F0484AF18AF0A61D49C58B6549AE22A3797042A1CAB79646A14C5F8877A33DFCFBF9039B4F9CAEE2BF593D5A956DDD4DD452F749497FBE", "descriptionLocation": "../../../source-generator/schemas/downloaded.json", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.12.0-preview.202402220002", + "kiotaVersion": "1.12.0-preview.202402290001", "clientClassName": "ApiClient", "clientNamespaceName": "github.com/octokit/go-sdk/pkg/github/", "language": "Go", diff --git a/pkg/github/orgs/item/migrations/get_exclude_query_parameter_type.go b/pkg/github/orgs/item/migrations/get_exclude_query_parameter_type.go new file mode 100644 index 00000000..2f48bb7f --- /dev/null +++ b/pkg/github/orgs/item/migrations/get_exclude_query_parameter_type.go @@ -0,0 +1,34 @@ +package migrations +import ( + "errors" +) +// Allowed values that can be passed to the exclude param. +type GetExcludeQueryParameterType int + +const ( + REPOSITORIES_GETEXCLUDEQUERYPARAMETERTYPE GetExcludeQueryParameterType = iota +) + +func (i GetExcludeQueryParameterType) String() string { + return []string{"repositories"}[i] +} +func ParseGetExcludeQueryParameterType(v string) (any, error) { + result := REPOSITORIES_GETEXCLUDEQUERYPARAMETERTYPE + switch v { + case "repositories": + result = REPOSITORIES_GETEXCLUDEQUERYPARAMETERTYPE + default: + return 0, errors.New("Unknown GetExcludeQueryParameterType value: " + v) + } + return &result, nil +} +func SerializeGetExcludeQueryParameterType(values []GetExcludeQueryParameterType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i GetExcludeQueryParameterType) isMultiValue() bool { + return false +} diff --git a/pkg/github/orgs/item/migrations/item/get_exclude_query_parameter_type.go b/pkg/github/orgs/item/migrations/item/get_exclude_query_parameter_type.go new file mode 100644 index 00000000..a67821d8 --- /dev/null +++ b/pkg/github/orgs/item/migrations/item/get_exclude_query_parameter_type.go @@ -0,0 +1,34 @@ +package item +import ( + "errors" +) +// Allowed values that can be passed to the exclude param. +type GetExcludeQueryParameterType int + +const ( + REPOSITORIES_GETEXCLUDEQUERYPARAMETERTYPE GetExcludeQueryParameterType = iota +) + +func (i GetExcludeQueryParameterType) String() string { + return []string{"repositories"}[i] +} +func ParseGetExcludeQueryParameterType(v string) (any, error) { + result := REPOSITORIES_GETEXCLUDEQUERYPARAMETERTYPE + switch v { + case "repositories": + result = REPOSITORIES_GETEXCLUDEQUERYPARAMETERTYPE + default: + return 0, errors.New("Unknown GetExcludeQueryParameterType value: " + v) + } + return &result, nil +} +func SerializeGetExcludeQueryParameterType(values []GetExcludeQueryParameterType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i GetExcludeQueryParameterType) isMultiValue() bool { + return false +} diff --git a/pkg/github/orgs/item_migrations_request_builder.go b/pkg/github/orgs/item_migrations_request_builder.go index e03b6a8a..5316c228 100644 --- a/pkg/github/orgs/item_migrations_request_builder.go +++ b/pkg/github/orgs/item_migrations_request_builder.go @@ -5,6 +5,7 @@ import ( i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" + i010f80164593e67edac379301caa66f6c3b0369d2d666ed5683626e52e3f25fb "github.com/octokit/go-sdk/pkg/github/orgs/item/migrations" ) // ItemMigrationsRequestBuilder builds and executes requests for operations under \orgs\{org}\migrations @@ -14,7 +15,7 @@ type ItemMigrationsRequestBuilder struct { // ItemMigrationsRequestBuilderGetQueryParameters lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API).A list of `repositories` is only returned for export migrations. type ItemMigrationsRequestBuilderGetQueryParameters struct { // Exclude attributes from the API response to improve performance - Exclude []string `uriparametername:"exclude"` + Exclude []i010f80164593e67edac379301caa66f6c3b0369d2d666ed5683626e52e3f25fb.GetExcludeQueryParameterType `uriparametername:"exclude"` // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." diff --git a/pkg/github/orgs/item_migrations_with_migration_item_request_builder.go b/pkg/github/orgs/item_migrations_with_migration_item_request_builder.go index 442b0a89..1fea0e6b 100644 --- a/pkg/github/orgs/item_migrations_with_migration_item_request_builder.go +++ b/pkg/github/orgs/item_migrations_with_migration_item_request_builder.go @@ -4,6 +4,7 @@ import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" + i399c3da064b81c83d30565b554a09039c3bc9dc0590affc1306cb54f75cd8e0d "github.com/octokit/go-sdk/pkg/github/orgs/item/migrations/item" ) // ItemMigrationsWithMigration_ItemRequestBuilder builds and executes requests for operations under \orgs\{org}\migrations\{migration_id} @@ -13,7 +14,7 @@ type ItemMigrationsWithMigration_ItemRequestBuilder struct { // ItemMigrationsWithMigration_ItemRequestBuilderGetQueryParameters fetches the status of a migration.The `state` of a migration can be one of the following values:* `pending`, which means the migration hasn't started yet.* `exporting`, which means the migration is in progress.* `exported`, which means the migration finished successfully.* `failed`, which means the migration failed. type ItemMigrationsWithMigration_ItemRequestBuilderGetQueryParameters struct { // Exclude attributes from the API response to improve performance - Exclude []string `uriparametername:"exclude"` + Exclude []i399c3da064b81c83d30565b554a09039c3bc9dc0590affc1306cb54f75cd8e0d.GetExcludeQueryParameterType `uriparametername:"exclude"` } // Archive the archive property // returns a *ItemMigrationsItemArchiveRequestBuilder when successful diff --git a/pkg/github/repos/item/item/repo_patch_request_body_merge_commit_message.go b/pkg/github/repos/item/item/repo_patch_request_body_merge_commit_message.go new file mode 100644 index 00000000..8349a799 --- /dev/null +++ b/pkg/github/repos/item/item/repo_patch_request_body_merge_commit_message.go @@ -0,0 +1,40 @@ +package item +import ( + "errors" +) +// The default value for a merge commit message.- `PR_TITLE` - default to the pull request's title.- `PR_BODY` - default to the pull request's body.- `BLANK` - default to a blank commit message. +type RepoPatchRequestBody_merge_commit_message int + +const ( + PR_BODY_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE RepoPatchRequestBody_merge_commit_message = iota + PR_TITLE_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE + BLANK_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE +) + +func (i RepoPatchRequestBody_merge_commit_message) String() string { + return []string{"PR_BODY", "PR_TITLE", "BLANK"}[i] +} +func ParseRepoPatchRequestBody_merge_commit_message(v string) (any, error) { + result := PR_BODY_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE + switch v { + case "PR_BODY": + result = PR_BODY_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE + case "PR_TITLE": + result = PR_TITLE_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE + case "BLANK": + result = BLANK_REPOPATCHREQUESTBODY_MERGE_COMMIT_MESSAGE + default: + return 0, errors.New("Unknown RepoPatchRequestBody_merge_commit_message value: " + v) + } + return &result, nil +} +func SerializeRepoPatchRequestBody_merge_commit_message(values []RepoPatchRequestBody_merge_commit_message) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RepoPatchRequestBody_merge_commit_message) isMultiValue() bool { + return false +} diff --git a/pkg/github/repos/item/item/repo_patch_request_body_merge_commit_title.go b/pkg/github/repos/item/item/repo_patch_request_body_merge_commit_title.go new file mode 100644 index 00000000..95b5c343 --- /dev/null +++ b/pkg/github/repos/item/item/repo_patch_request_body_merge_commit_title.go @@ -0,0 +1,37 @@ +package item +import ( + "errors" +) +// The default value for a merge commit title.- `PR_TITLE` - default to the pull request's title.- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). +type RepoPatchRequestBody_merge_commit_title int + +const ( + PR_TITLE_REPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE RepoPatchRequestBody_merge_commit_title = iota + MERGE_MESSAGE_REPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE +) + +func (i RepoPatchRequestBody_merge_commit_title) String() string { + return []string{"PR_TITLE", "MERGE_MESSAGE"}[i] +} +func ParseRepoPatchRequestBody_merge_commit_title(v string) (any, error) { + result := PR_TITLE_REPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE + switch v { + case "PR_TITLE": + result = PR_TITLE_REPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE + case "MERGE_MESSAGE": + result = MERGE_MESSAGE_REPOPATCHREQUESTBODY_MERGE_COMMIT_TITLE + default: + return 0, errors.New("Unknown RepoPatchRequestBody_merge_commit_title value: " + v) + } + return &result, nil +} +func SerializeRepoPatchRequestBody_merge_commit_title(values []RepoPatchRequestBody_merge_commit_title) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RepoPatchRequestBody_merge_commit_title) isMultiValue() bool { + return false +} diff --git a/pkg/github/repos/item/item/repo_patch_request_body_squash_merge_commit_message.go b/pkg/github/repos/item/item/repo_patch_request_body_squash_merge_commit_message.go new file mode 100644 index 00000000..0f0d7e93 --- /dev/null +++ b/pkg/github/repos/item/item/repo_patch_request_body_squash_merge_commit_message.go @@ -0,0 +1,40 @@ +package item +import ( + "errors" +) +// The default value for a squash merge commit message:- `PR_BODY` - default to the pull request's body.- `COMMIT_MESSAGES` - default to the branch's commit messages.- `BLANK` - default to a blank commit message. +type RepoPatchRequestBody_squash_merge_commit_message int + +const ( + PR_BODY_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE RepoPatchRequestBody_squash_merge_commit_message = iota + COMMIT_MESSAGES_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE + BLANK_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE +) + +func (i RepoPatchRequestBody_squash_merge_commit_message) String() string { + return []string{"PR_BODY", "COMMIT_MESSAGES", "BLANK"}[i] +} +func ParseRepoPatchRequestBody_squash_merge_commit_message(v string) (any, error) { + result := PR_BODY_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE + switch v { + case "PR_BODY": + result = PR_BODY_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE + case "COMMIT_MESSAGES": + result = COMMIT_MESSAGES_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE + case "BLANK": + result = BLANK_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_MESSAGE + default: + return 0, errors.New("Unknown RepoPatchRequestBody_squash_merge_commit_message value: " + v) + } + return &result, nil +} +func SerializeRepoPatchRequestBody_squash_merge_commit_message(values []RepoPatchRequestBody_squash_merge_commit_message) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RepoPatchRequestBody_squash_merge_commit_message) isMultiValue() bool { + return false +} diff --git a/pkg/github/repos/item/item/repo_patch_request_body_squash_merge_commit_title.go b/pkg/github/repos/item/item/repo_patch_request_body_squash_merge_commit_title.go new file mode 100644 index 00000000..6108d856 --- /dev/null +++ b/pkg/github/repos/item/item/repo_patch_request_body_squash_merge_commit_title.go @@ -0,0 +1,37 @@ +package item +import ( + "errors" +) +// The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). +type RepoPatchRequestBody_squash_merge_commit_title int + +const ( + PR_TITLE_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE RepoPatchRequestBody_squash_merge_commit_title = iota + COMMIT_OR_PR_TITLE_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE +) + +func (i RepoPatchRequestBody_squash_merge_commit_title) String() string { + return []string{"PR_TITLE", "COMMIT_OR_PR_TITLE"}[i] +} +func ParseRepoPatchRequestBody_squash_merge_commit_title(v string) (any, error) { + result := PR_TITLE_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE + switch v { + case "PR_TITLE": + result = PR_TITLE_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE + case "COMMIT_OR_PR_TITLE": + result = COMMIT_OR_PR_TITLE_REPOPATCHREQUESTBODY_SQUASH_MERGE_COMMIT_TITLE + default: + return 0, errors.New("Unknown RepoPatchRequestBody_squash_merge_commit_title value: " + v) + } + return &result, nil +} +func SerializeRepoPatchRequestBody_squash_merge_commit_title(values []RepoPatchRequestBody_squash_merge_commit_title) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RepoPatchRequestBody_squash_merge_commit_title) isMultiValue() bool { + return false +} diff --git a/pkg/github/repos/item/item/repo_patch_request_body_visibility.go b/pkg/github/repos/item/item/repo_patch_request_body_visibility.go new file mode 100644 index 00000000..b741c1b9 --- /dev/null +++ b/pkg/github/repos/item/item/repo_patch_request_body_visibility.go @@ -0,0 +1,37 @@ +package item +import ( + "errors" +) +// The visibility of the repository. +type RepoPatchRequestBody_visibility int + +const ( + PUBLIC_REPOPATCHREQUESTBODY_VISIBILITY RepoPatchRequestBody_visibility = iota + PRIVATE_REPOPATCHREQUESTBODY_VISIBILITY +) + +func (i RepoPatchRequestBody_visibility) String() string { + return []string{"public", "private"}[i] +} +func ParseRepoPatchRequestBody_visibility(v string) (any, error) { + result := PUBLIC_REPOPATCHREQUESTBODY_VISIBILITY + switch v { + case "public": + result = PUBLIC_REPOPATCHREQUESTBODY_VISIBILITY + case "private": + result = PRIVATE_REPOPATCHREQUESTBODY_VISIBILITY + default: + return 0, errors.New("Unknown RepoPatchRequestBody_visibility value: " + v) + } + return &result, nil +} +func SerializeRepoPatchRequestBody_visibility(values []RepoPatchRequestBody_visibility) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RepoPatchRequestBody_visibility) isMultiValue() bool { + return false +} diff --git a/pkg/github/repos/item_item_actions_artifacts_item_with_archive_format_item_request_builder.go b/pkg/github/repos/item_item_actions_artifacts_item_with_archive_format_item_request_builder.go index 3b02b0de..ca5144e9 100644 --- a/pkg/github/repos/item_item_actions_artifacts_item_with_archive_format_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_artifacts_item_with_archive_format_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\artifacts\{artifact_id}\{archive_format} +// ItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\artifacts\{artifact_id}\{archive_format} type ItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilderInternal instantiates a new ItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilder and sets the default values. func NewItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilder) { m := &ItemItemActionsArtifactsItemWithArchive_formatItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/artifacts/{artifact_id}/{archive_format}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/artifacts/{artifact_id}/{archive_format}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_artifacts_request_builder.go b/pkg/github/repos/item_item_actions_artifacts_request_builder.go index 42942c0b..ba9cf8a8 100644 --- a/pkg/github/repos/item_item_actions_artifacts_request_builder.go +++ b/pkg/github/repos/item_item_actions_artifacts_request_builder.go @@ -6,7 +6,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsArtifactsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\artifacts +// ItemItemActionsArtifactsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\artifacts type ItemItemActionsArtifactsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -32,7 +32,7 @@ func (m *ItemItemActionsArtifactsRequestBuilder) ByArtifact_id(artifact_id int32 // NewItemItemActionsArtifactsRequestBuilderInternal instantiates a new ItemItemActionsArtifactsRequestBuilder and sets the default values. func NewItemItemActionsArtifactsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsArtifactsRequestBuilder) { m := &ItemItemActionsArtifactsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/artifacts{?name*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/artifacts{?name*,page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_artifacts_with_artifact_item_request_builder.go b/pkg/github/repos/item_item_actions_artifacts_with_artifact_item_request_builder.go index a774f987..974bbce3 100644 --- a/pkg/github/repos/item_item_actions_artifacts_with_artifact_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_artifacts_with_artifact_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\artifacts\{artifact_id} +// ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\artifacts\{artifact_id} type ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder) ByArchive_form // NewItemItemActionsArtifactsWithArtifact_ItemRequestBuilderInternal instantiates a new ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder and sets the default values. func NewItemItemActionsArtifactsWithArtifact_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder) { m := &ItemItemActionsArtifactsWithArtifact_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/artifacts/{artifact_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/artifacts/{artifact_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_cache_request_builder.go b/pkg/github/repos/item_item_actions_cache_request_builder.go index 4723bd9f..dfbae827 100644 --- a/pkg/github/repos/item_item_actions_cache_request_builder.go +++ b/pkg/github/repos/item_item_actions_cache_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsCacheRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\cache +// ItemItemActionsCacheRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\cache type ItemItemActionsCacheRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsCacheRequestBuilderInternal instantiates a new ItemItemActionsCacheRequestBuilder and sets the default values. func NewItemItemActionsCacheRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsCacheRequestBuilder) { m := &ItemItemActionsCacheRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/cache", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/cache", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_cache_usage_request_builder.go b/pkg/github/repos/item_item_actions_cache_usage_request_builder.go index 6dbba2ca..cb9c74c1 100644 --- a/pkg/github/repos/item_item_actions_cache_usage_request_builder.go +++ b/pkg/github/repos/item_item_actions_cache_usage_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsCacheUsageRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\cache\usage +// ItemItemActionsCacheUsageRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\cache\usage type ItemItemActionsCacheUsageRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsCacheUsageRequestBuilderInternal instantiates a new ItemItemActionsCacheUsageRequestBuilder and sets the default values. func NewItemItemActionsCacheUsageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsCacheUsageRequestBuilder) { m := &ItemItemActionsCacheUsageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/cache/usage", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/cache/usage", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_caches_request_builder.go b/pkg/github/repos/item_item_actions_caches_request_builder.go index 19a2335b..e9233071 100644 --- a/pkg/github/repos/item_item_actions_caches_request_builder.go +++ b/pkg/github/repos/item_item_actions_caches_request_builder.go @@ -8,7 +8,7 @@ import ( i3a298556069ace403d8f25ad8fc9a71cfb502c817e6b3784c90f44e6250cae51 "github.com/octokit/go-sdk/pkg/github/repos/item/item/actions/caches" ) -// ItemItemActionsCachesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\caches +// ItemItemActionsCachesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\caches type ItemItemActionsCachesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -47,7 +47,7 @@ func (m *ItemItemActionsCachesRequestBuilder) ByCache_id(cache_id int32)(*ItemIt // NewItemItemActionsCachesRequestBuilderInternal instantiates a new ItemItemActionsCachesRequestBuilder and sets the default values. func NewItemItemActionsCachesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsCachesRequestBuilder) { m := &ItemItemActionsCachesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/caches{?direction*,key*,page*,per_page*,ref*,sort*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/caches{?direction*,key*,page*,per_page*,ref*,sort*}", pathParameters), } return m } @@ -98,7 +98,7 @@ func (m *ItemItemActionsCachesRequestBuilder) Get(ctx context.Context, requestCo // ToDeleteRequestInformation deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemActionsCachesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemActionsCachesRequestBuilderDeleteQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/caches?key={key}{&ref*}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/caches?key={key}{&ref*}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil diff --git a/pkg/github/repos/item_item_actions_caches_with_cache_item_request_builder.go b/pkg/github/repos/item_item_actions_caches_with_cache_item_request_builder.go index f53549b5..1b44ead7 100644 --- a/pkg/github/repos/item_item_actions_caches_with_cache_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_caches_with_cache_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsCachesWithCache_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\caches\{cache_id} +// ItemItemActionsCachesWithCache_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\caches\{cache_id} type ItemItemActionsCachesWithCache_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsCachesWithCache_ItemRequestBuilderInternal instantiates a new ItemItemActionsCachesWithCache_ItemRequestBuilder and sets the default values. func NewItemItemActionsCachesWithCache_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsCachesWithCache_ItemRequestBuilder) { m := &ItemItemActionsCachesWithCache_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/caches/{cache_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/caches/{cache_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_jobs_item_logs_request_builder.go b/pkg/github/repos/item_item_actions_jobs_item_logs_request_builder.go index 40f3c8ca..b025a265 100644 --- a/pkg/github/repos/item_item_actions_jobs_item_logs_request_builder.go +++ b/pkg/github/repos/item_item_actions_jobs_item_logs_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsJobsItemLogsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\jobs\{job_id}\logs +// ItemItemActionsJobsItemLogsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs\{job_id}\logs type ItemItemActionsJobsItemLogsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsJobsItemLogsRequestBuilderInternal instantiates a new ItemItemActionsJobsItemLogsRequestBuilder and sets the default values. func NewItemItemActionsJobsItemLogsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsJobsItemLogsRequestBuilder) { m := &ItemItemActionsJobsItemLogsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/jobs/{job_id}/logs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/jobs/{job_id}/logs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_jobs_item_rerun_request_builder.go b/pkg/github/repos/item_item_actions_jobs_item_rerun_request_builder.go index fb1d4df4..fc595b5b 100644 --- a/pkg/github/repos/item_item_actions_jobs_item_rerun_request_builder.go +++ b/pkg/github/repos/item_item_actions_jobs_item_rerun_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsJobsItemRerunRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\jobs\{job_id}\rerun +// ItemItemActionsJobsItemRerunRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs\{job_id}\rerun type ItemItemActionsJobsItemRerunRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsJobsItemRerunRequestBuilderInternal instantiates a new ItemItemActionsJobsItemRerunRequestBuilder and sets the default values. func NewItemItemActionsJobsItemRerunRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsJobsItemRerunRequestBuilder) { m := &ItemItemActionsJobsItemRerunRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/jobs/{job_id}/rerun", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/jobs/{job_id}/rerun", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_jobs_request_builder.go b/pkg/github/repos/item_item_actions_jobs_request_builder.go index 6a367f5b..3ada94c8 100644 --- a/pkg/github/repos/item_item_actions_jobs_request_builder.go +++ b/pkg/github/repos/item_item_actions_jobs_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsJobsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\jobs +// ItemItemActionsJobsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs type ItemItemActionsJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ func (m *ItemItemActionsJobsRequestBuilder) ByJob_id(job_id int32)(*ItemItemActi // NewItemItemActionsJobsRequestBuilderInternal instantiates a new ItemItemActionsJobsRequestBuilder and sets the default values. func NewItemItemActionsJobsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsJobsRequestBuilder) { m := &ItemItemActionsJobsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/jobs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/jobs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_jobs_with_job_item_request_builder.go b/pkg/github/repos/item_item_actions_jobs_with_job_item_request_builder.go index d6caba79..8dee16ec 100644 --- a/pkg/github/repos/item_item_actions_jobs_with_job_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_jobs_with_job_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsJobsWithJob_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\jobs\{job_id} +// ItemItemActionsJobsWithJob_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\jobs\{job_id} type ItemItemActionsJobsWithJob_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsJobsWithJob_ItemRequestBuilderInternal instantiates a new ItemItemActionsJobsWithJob_ItemRequestBuilder and sets the default values. func NewItemItemActionsJobsWithJob_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsJobsWithJob_ItemRequestBuilder) { m := &ItemItemActionsJobsWithJob_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/jobs/{job_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/jobs/{job_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_oidc_customization_request_builder.go b/pkg/github/repos/item_item_actions_oidc_customization_request_builder.go index d7d09131..add4b864 100644 --- a/pkg/github/repos/item_item_actions_oidc_customization_request_builder.go +++ b/pkg/github/repos/item_item_actions_oidc_customization_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsOidcCustomizationRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\oidc\customization +// ItemItemActionsOidcCustomizationRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\oidc\customization type ItemItemActionsOidcCustomizationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsOidcCustomizationRequestBuilderInternal instantiates a new ItemItemActionsOidcCustomizationRequestBuilder and sets the default values. func NewItemItemActionsOidcCustomizationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsOidcCustomizationRequestBuilder) { m := &ItemItemActionsOidcCustomizationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/oidc/customization", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/oidc/customization", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_oidc_customization_sub_request_builder.go b/pkg/github/repos/item_item_actions_oidc_customization_sub_request_builder.go index 1809f55c..003d677f 100644 --- a/pkg/github/repos/item_item_actions_oidc_customization_sub_request_builder.go +++ b/pkg/github/repos/item_item_actions_oidc_customization_sub_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsOidcCustomizationSubRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\oidc\customization\sub +// ItemItemActionsOidcCustomizationSubRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\oidc\customization\sub type ItemItemActionsOidcCustomizationSubRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsOidcCustomizationSubRequestBuilderInternal instantiates a new ItemItemActionsOidcCustomizationSubRequestBuilder and sets the default values. func NewItemItemActionsOidcCustomizationSubRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsOidcCustomizationSubRequestBuilder) { m := &ItemItemActionsOidcCustomizationSubRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/oidc/customization/sub", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/oidc/customization/sub", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_oidc_request_builder.go b/pkg/github/repos/item_item_actions_oidc_request_builder.go index ede003f7..c98d18ae 100644 --- a/pkg/github/repos/item_item_actions_oidc_request_builder.go +++ b/pkg/github/repos/item_item_actions_oidc_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsOidcRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\oidc +// ItemItemActionsOidcRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\oidc type ItemItemActionsOidcRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsOidcRequestBuilderInternal instantiates a new ItemItemActionsOidcRequestBuilder and sets the default values. func NewItemItemActionsOidcRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsOidcRequestBuilder) { m := &ItemItemActionsOidcRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/oidc", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/oidc", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_organization_secrets_request_builder.go b/pkg/github/repos/item_item_actions_organization_secrets_request_builder.go index ebbe39f8..d407b5db 100644 --- a/pkg/github/repos/item_item_actions_organization_secrets_request_builder.go +++ b/pkg/github/repos/item_item_actions_organization_secrets_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsOrganizationSecretsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\organization-secrets +// ItemItemActionsOrganizationSecretsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\organization-secrets type ItemItemActionsOrganizationSecretsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -19,7 +19,7 @@ type ItemItemActionsOrganizationSecretsRequestBuilderGetQueryParameters struct { // NewItemItemActionsOrganizationSecretsRequestBuilderInternal instantiates a new ItemItemActionsOrganizationSecretsRequestBuilder and sets the default values. func NewItemItemActionsOrganizationSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsOrganizationSecretsRequestBuilder) { m := &ItemItemActionsOrganizationSecretsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/organization-secrets{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/organization-secrets{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_organization_variables_request_builder.go b/pkg/github/repos/item_item_actions_organization_variables_request_builder.go index aefd4e10..f7bfc0ab 100644 --- a/pkg/github/repos/item_item_actions_organization_variables_request_builder.go +++ b/pkg/github/repos/item_item_actions_organization_variables_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsOrganizationVariablesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\organization-variables +// ItemItemActionsOrganizationVariablesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\organization-variables type ItemItemActionsOrganizationVariablesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -19,7 +19,7 @@ type ItemItemActionsOrganizationVariablesRequestBuilderGetQueryParameters struct // NewItemItemActionsOrganizationVariablesRequestBuilderInternal instantiates a new ItemItemActionsOrganizationVariablesRequestBuilder and sets the default values. func NewItemItemActionsOrganizationVariablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsOrganizationVariablesRequestBuilder) { m := &ItemItemActionsOrganizationVariablesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/organization-variables{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/organization-variables{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_permissions_access_request_builder.go b/pkg/github/repos/item_item_actions_permissions_access_request_builder.go index 3f54633c..4961a1c4 100644 --- a/pkg/github/repos/item_item_actions_permissions_access_request_builder.go +++ b/pkg/github/repos/item_item_actions_permissions_access_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsPermissionsAccessRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\permissions\access +// ItemItemActionsPermissionsAccessRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions\access type ItemItemActionsPermissionsAccessRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsPermissionsAccessRequestBuilderInternal instantiates a new ItemItemActionsPermissionsAccessRequestBuilder and sets the default values. func NewItemItemActionsPermissionsAccessRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsPermissionsAccessRequestBuilder) { m := &ItemItemActionsPermissionsAccessRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/permissions/access", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/permissions/access", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_permissions_request_builder.go b/pkg/github/repos/item_item_actions_permissions_request_builder.go index d97a4bb8..fe1de8cc 100644 --- a/pkg/github/repos/item_item_actions_permissions_request_builder.go +++ b/pkg/github/repos/item_item_actions_permissions_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsPermissionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\permissions +// ItemItemActionsPermissionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions type ItemItemActionsPermissionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemActionsPermissionsRequestBuilder) Access()(*ItemItemActionsPerm // NewItemItemActionsPermissionsRequestBuilderInternal instantiates a new ItemItemActionsPermissionsRequestBuilder and sets the default values. func NewItemItemActionsPermissionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsPermissionsRequestBuilder) { m := &ItemItemActionsPermissionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/permissions", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/permissions", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_permissions_selected_actions_request_builder.go b/pkg/github/repos/item_item_actions_permissions_selected_actions_request_builder.go index d717ef50..da8a91a4 100644 --- a/pkg/github/repos/item_item_actions_permissions_selected_actions_request_builder.go +++ b/pkg/github/repos/item_item_actions_permissions_selected_actions_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsPermissionsSelectedActionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\permissions\selected-actions +// ItemItemActionsPermissionsSelectedActionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions\selected-actions type ItemItemActionsPermissionsSelectedActionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsPermissionsSelectedActionsRequestBuilderInternal instantiates a new ItemItemActionsPermissionsSelectedActionsRequestBuilder and sets the default values. func NewItemItemActionsPermissionsSelectedActionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsPermissionsSelectedActionsRequestBuilder) { m := &ItemItemActionsPermissionsSelectedActionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/permissions/selected-actions", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/permissions/selected-actions", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_permissions_workflow_request_builder.go b/pkg/github/repos/item_item_actions_permissions_workflow_request_builder.go index a1358bc0..ff26cb02 100644 --- a/pkg/github/repos/item_item_actions_permissions_workflow_request_builder.go +++ b/pkg/github/repos/item_item_actions_permissions_workflow_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsPermissionsWorkflowRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\permissions\workflow +// ItemItemActionsPermissionsWorkflowRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\permissions\workflow type ItemItemActionsPermissionsWorkflowRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsPermissionsWorkflowRequestBuilderInternal instantiates a new ItemItemActionsPermissionsWorkflowRequestBuilder and sets the default values. func NewItemItemActionsPermissionsWorkflowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsPermissionsWorkflowRequestBuilder) { m := &ItemItemActionsPermissionsWorkflowRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/permissions/workflow", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/permissions/workflow", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_request_builder.go b/pkg/github/repos/item_item_actions_request_builder.go index e3d000cc..4c44cdde 100644 --- a/pkg/github/repos/item_item_actions_request_builder.go +++ b/pkg/github/repos/item_item_actions_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions +// ItemItemActionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions type ItemItemActionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -26,7 +26,7 @@ func (m *ItemItemActionsRequestBuilder) Caches()(*ItemItemActionsCachesRequestBu // NewItemItemActionsRequestBuilderInternal instantiates a new ItemItemActionsRequestBuilder and sets the default values. func NewItemItemActionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRequestBuilder) { m := &ItemItemActionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_downloads_request_builder.go b/pkg/github/repos/item_item_actions_runners_downloads_request_builder.go index 31cffc28..9509c8ee 100644 --- a/pkg/github/repos/item_item_actions_runners_downloads_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_downloads_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersDownloadsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\downloads +// ItemItemActionsRunnersDownloadsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\downloads type ItemItemActionsRunnersDownloadsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunnersDownloadsRequestBuilderInternal instantiates a new ItemItemActionsRunnersDownloadsRequestBuilder and sets the default values. func NewItemItemActionsRunnersDownloadsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersDownloadsRequestBuilder) { m := &ItemItemActionsRunnersDownloadsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/downloads", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/downloads", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_generate_jitconfig_request_builder.go b/pkg/github/repos/item_item_actions_runners_generate_jitconfig_request_builder.go index 677375e7..c8383d28 100644 --- a/pkg/github/repos/item_item_actions_runners_generate_jitconfig_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_generate_jitconfig_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersGenerateJitconfigRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\generate-jitconfig +// ItemItemActionsRunnersGenerateJitconfigRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\generate-jitconfig type ItemItemActionsRunnersGenerateJitconfigRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunnersGenerateJitconfigRequestBuilderInternal instantiates a new ItemItemActionsRunnersGenerateJitconfigRequestBuilder and sets the default values. func NewItemItemActionsRunnersGenerateJitconfigRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersGenerateJitconfigRequestBuilder) { m := &ItemItemActionsRunnersGenerateJitconfigRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/generate-jitconfig", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/generate-jitconfig", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_item_labels_request_builder.go b/pkg/github/repos/item_item_actions_runners_item_labels_request_builder.go index e4ad3e93..00cd81cd 100644 --- a/pkg/github/repos/item_item_actions_runners_item_labels_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_item_labels_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersItemLabelsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\{runner_id}\labels +// ItemItemActionsRunnersItemLabelsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\{runner_id}\labels type ItemItemActionsRunnersItemLabelsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemActionsRunnersItemLabelsRequestBuilder) ByName(name string)(*It // NewItemItemActionsRunnersItemLabelsRequestBuilderInternal instantiates a new ItemItemActionsRunnersItemLabelsRequestBuilder and sets the default values. func NewItemItemActionsRunnersItemLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersItemLabelsRequestBuilder) { m := &ItemItemActionsRunnersItemLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/{runner_id}/labels", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/{runner_id}/labels", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_item_labels_with_name_item_request_builder.go b/pkg/github/repos/item_item_actions_runners_item_labels_with_name_item_request_builder.go index 24787250..fe9cfa1c 100644 --- a/pkg/github/repos/item_item_actions_runners_item_labels_with_name_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_item_labels_with_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersItemLabelsWithNameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\{runner_id}\labels\{name} +// ItemItemActionsRunnersItemLabelsWithNameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\{runner_id}\labels\{name} type ItemItemActionsRunnersItemLabelsWithNameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunnersItemLabelsWithNameItemRequestBuilderInternal instantiates a new ItemItemActionsRunnersItemLabelsWithNameItemRequestBuilder and sets the default values. func NewItemItemActionsRunnersItemLabelsWithNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersItemLabelsWithNameItemRequestBuilder) { m := &ItemItemActionsRunnersItemLabelsWithNameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/{runner_id}/labels/{name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/{runner_id}/labels/{name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_registration_token_request_builder.go b/pkg/github/repos/item_item_actions_runners_registration_token_request_builder.go index c94cee01..5c475f7d 100644 --- a/pkg/github/repos/item_item_actions_runners_registration_token_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_registration_token_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersRegistrationTokenRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\registration-token +// ItemItemActionsRunnersRegistrationTokenRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\registration-token type ItemItemActionsRunnersRegistrationTokenRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunnersRegistrationTokenRequestBuilderInternal instantiates a new ItemItemActionsRunnersRegistrationTokenRequestBuilder and sets the default values. func NewItemItemActionsRunnersRegistrationTokenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersRegistrationTokenRequestBuilder) { m := &ItemItemActionsRunnersRegistrationTokenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/registration-token", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/registration-token", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_remove_token_request_builder.go b/pkg/github/repos/item_item_actions_runners_remove_token_request_builder.go index 84870ae1..fc8840e3 100644 --- a/pkg/github/repos/item_item_actions_runners_remove_token_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_remove_token_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersRemoveTokenRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\remove-token +// ItemItemActionsRunnersRemoveTokenRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\remove-token type ItemItemActionsRunnersRemoveTokenRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunnersRemoveTokenRequestBuilderInternal instantiates a new ItemItemActionsRunnersRemoveTokenRequestBuilder and sets the default values. func NewItemItemActionsRunnersRemoveTokenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersRemoveTokenRequestBuilder) { m := &ItemItemActionsRunnersRemoveTokenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/remove-token", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/remove-token", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_request_builder.go b/pkg/github/repos/item_item_actions_runners_request_builder.go index feb68e2f..bde8aa5f 100644 --- a/pkg/github/repos/item_item_actions_runners_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_request_builder.go @@ -6,7 +6,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsRunnersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners +// ItemItemActionsRunnersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners type ItemItemActionsRunnersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -32,7 +32,7 @@ func (m *ItemItemActionsRunnersRequestBuilder) ByRunner_id(runner_id int32)(*Ite // NewItemItemActionsRunnersRequestBuilderInternal instantiates a new ItemItemActionsRunnersRequestBuilder and sets the default values. func NewItemItemActionsRunnersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersRequestBuilder) { m := &ItemItemActionsRunnersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners{?name*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners{?name*,page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runners_with_runner_item_request_builder.go b/pkg/github/repos/item_item_actions_runners_with_runner_item_request_builder.go index b0cc3d86..52732f47 100644 --- a/pkg/github/repos/item_item_actions_runners_with_runner_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_runners_with_runner_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunnersWithRunner_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runners\{runner_id} +// ItemItemActionsRunnersWithRunner_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runners\{runner_id} type ItemItemActionsRunnersWithRunner_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunnersWithRunner_ItemRequestBuilderInternal instantiates a new ItemItemActionsRunnersWithRunner_ItemRequestBuilder and sets the default values. func NewItemItemActionsRunnersWithRunner_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunnersWithRunner_ItemRequestBuilder) { m := &ItemItemActionsRunnersWithRunner_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runners/{runner_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runners/{runner_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_approvals_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_approvals_request_builder.go index 0ed90668..1f806e00 100644 --- a/pkg/github/repos/item_item_actions_runs_item_approvals_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_approvals_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemApprovalsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\approvals +// ItemItemActionsRunsItemApprovalsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\approvals type ItemItemActionsRunsItemApprovalsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemApprovalsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemApprovalsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemApprovalsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemApprovalsRequestBuilder) { m := &ItemItemActionsRunsItemApprovalsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/approvals", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/approvals", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_approve_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_approve_request_builder.go index 4f43f3c8..da37e860 100644 --- a/pkg/github/repos/item_item_actions_runs_item_approve_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_approve_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemApproveRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\approve +// ItemItemActionsRunsItemApproveRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\approve type ItemItemActionsRunsItemApproveRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemApproveRequestBuilderInternal instantiates a new ItemItemActionsRunsItemApproveRequestBuilder and sets the default values. func NewItemItemActionsRunsItemApproveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemApproveRequestBuilder) { m := &ItemItemActionsRunsItemApproveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/approve", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/approve", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_artifacts_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_artifacts_request_builder.go index 8514c2eb..2fc0c7f4 100644 --- a/pkg/github/repos/item_item_actions_runs_item_artifacts_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_artifacts_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsRunsItemArtifactsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\artifacts +// ItemItemActionsRunsItemArtifactsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\artifacts type ItemItemActionsRunsItemArtifactsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -21,7 +21,7 @@ type ItemItemActionsRunsItemArtifactsRequestBuilderGetQueryParameters struct { // NewItemItemActionsRunsItemArtifactsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemArtifactsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemArtifactsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemArtifactsRequestBuilder) { m := &ItemItemActionsRunsItemArtifactsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/artifacts{?name*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/artifacts{?name*,page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_request_builder.go index 02352e8f..bbac8adf 100644 --- a/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_attempts_item_jobs_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemAttemptsItemJobsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\attempts\{attempt_number}\jobs +// ItemItemActionsRunsItemAttemptsItemJobsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts\{attempt_number}\jobs type ItemItemActionsRunsItemAttemptsItemJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemActionsRunsItemAttemptsItemJobsRequestBuilderGetQueryParameters str // NewItemItemActionsRunsItemAttemptsItemJobsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemAttemptsItemJobsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemAttemptsItemJobsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemAttemptsItemJobsRequestBuilder) { m := &ItemItemActionsRunsItemAttemptsItemJobsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/attempts/{attempt_number}/jobs{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/attempts/{attempt_number}/jobs{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_attempts_item_logs_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_attempts_item_logs_request_builder.go index 407b371a..6502b475 100644 --- a/pkg/github/repos/item_item_actions_runs_item_attempts_item_logs_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_attempts_item_logs_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsRunsItemAttemptsItemLogsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\attempts\{attempt_number}\logs +// ItemItemActionsRunsItemAttemptsItemLogsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts\{attempt_number}\logs type ItemItemActionsRunsItemAttemptsItemLogsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemAttemptsItemLogsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemAttemptsItemLogsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemAttemptsItemLogsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemAttemptsItemLogsRequestBuilder) { m := &ItemItemActionsRunsItemAttemptsItemLogsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/attempts/{attempt_number}/logs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/attempts/{attempt_number}/logs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_attempts_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_attempts_request_builder.go index 5eefcde6..2f9c9af0 100644 --- a/pkg/github/repos/item_item_actions_runs_item_attempts_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_attempts_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsRunsItemAttemptsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\attempts +// ItemItemActionsRunsItemAttemptsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts type ItemItemActionsRunsItemAttemptsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ func (m *ItemItemActionsRunsItemAttemptsRequestBuilder) ByAttempt_number(attempt // NewItemItemActionsRunsItemAttemptsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemAttemptsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemAttemptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemAttemptsRequestBuilder) { m := &ItemItemActionsRunsItemAttemptsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/attempts", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/attempts", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_attempts_with_attempt_number_item_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_attempts_with_attempt_number_item_request_builder.go index 5e03a59a..25149746 100644 --- a/pkg/github/repos/item_item_actions_runs_item_attempts_with_attempt_number_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_attempts_with_attempt_number_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\attempts\{attempt_number} +// ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\attempts\{attempt_number} type ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilderGetQuery // NewItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilderInternal instantiates a new ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilder and sets the default values. func NewItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilder) { m := &ItemItemActionsRunsItemAttemptsWithAttempt_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/attempts/{attempt_number}{?exclude_pull_requests*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/attempts/{attempt_number}{?exclude_pull_requests*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_cancel_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_cancel_request_builder.go index 63ee1fd7..ce35e55c 100644 --- a/pkg/github/repos/item_item_actions_runs_item_cancel_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_cancel_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemCancelRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\cancel +// ItemItemActionsRunsItemCancelRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\cancel type ItemItemActionsRunsItemCancelRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemCancelRequestBuilderInternal instantiates a new ItemItemActionsRunsItemCancelRequestBuilder and sets the default values. func NewItemItemActionsRunsItemCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemCancelRequestBuilder) { m := &ItemItemActionsRunsItemCancelRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/cancel", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/cancel", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_deployment_protection_rule_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_deployment_protection_rule_request_builder.go index 05656506..7ca65a4c 100644 --- a/pkg/github/repos/item_item_actions_runs_item_deployment_protection_rule_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_deployment_protection_rule_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemDeployment_protection_ruleRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\deployment_protection_rule +// ItemItemActionsRunsItemDeployment_protection_ruleRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\deployment_protection_rule type ItemItemActionsRunsItemDeployment_protection_ruleRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -150,7 +150,7 @@ type Deployment_protection_rulePostRequestBodyable interface { // NewItemItemActionsRunsItemDeployment_protection_ruleRequestBuilderInternal instantiates a new ItemItemActionsRunsItemDeployment_protection_ruleRequestBuilder and sets the default values. func NewItemItemActionsRunsItemDeployment_protection_ruleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemDeployment_protection_ruleRequestBuilder) { m := &ItemItemActionsRunsItemDeployment_protection_ruleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/deployment_protection_rule", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/deployment_protection_rule", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_force_cancel_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_force_cancel_request_builder.go index 65ecc300..db33ac6a 100644 --- a/pkg/github/repos/item_item_actions_runs_item_force_cancel_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_force_cancel_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemForceCancelRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\force-cancel +// ItemItemActionsRunsItemForceCancelRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\force-cancel type ItemItemActionsRunsItemForceCancelRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemForceCancelRequestBuilderInternal instantiates a new ItemItemActionsRunsItemForceCancelRequestBuilder and sets the default values. func NewItemItemActionsRunsItemForceCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemForceCancelRequestBuilder) { m := &ItemItemActionsRunsItemForceCancelRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/force-cancel", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/force-cancel", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_jobs_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_jobs_request_builder.go index b6791210..9c63dba9 100644 --- a/pkg/github/repos/item_item_actions_runs_item_jobs_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_jobs_request_builder.go @@ -6,7 +6,7 @@ import ( i08b4bf52b4de47221f213f980c03d04a2d7557c63c7158cc63f99ebaac398e57 "github.com/octokit/go-sdk/pkg/github/repos/item/item/actions/runs/item/jobs" ) -// ItemItemActionsRunsItemJobsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\jobs +// ItemItemActionsRunsItemJobsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\jobs type ItemItemActionsRunsItemJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ type ItemItemActionsRunsItemJobsRequestBuilderGetQueryParameters struct { // NewItemItemActionsRunsItemJobsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemJobsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemJobsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemJobsRequestBuilder) { m := &ItemItemActionsRunsItemJobsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/jobs{?filter*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/jobs{?filter*,page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_logs_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_logs_request_builder.go index fb2a0fcd..b064e0b3 100644 --- a/pkg/github/repos/item_item_actions_runs_item_logs_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_logs_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemLogsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\logs +// ItemItemActionsRunsItemLogsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\logs type ItemItemActionsRunsItemLogsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemLogsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemLogsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemLogsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemLogsRequestBuilder) { m := &ItemItemActionsRunsItemLogsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/logs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/logs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_pending_deployments_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_pending_deployments_request_builder.go index 2ee519bd..093d728f 100644 --- a/pkg/github/repos/item_item_actions_runs_item_pending_deployments_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_pending_deployments_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemPending_deploymentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\pending_deployments +// ItemItemActionsRunsItemPending_deploymentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\pending_deployments type ItemItemActionsRunsItemPending_deploymentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemPending_deploymentsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemPending_deploymentsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemPending_deploymentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemPending_deploymentsRequestBuilder) { m := &ItemItemActionsRunsItemPending_deploymentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/pending_deployments", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/pending_deployments", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_rerun_failed_jobs_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_rerun_failed_jobs_request_builder.go index 592c36a3..388f86ea 100644 --- a/pkg/github/repos/item_item_actions_runs_item_rerun_failed_jobs_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_rerun_failed_jobs_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemRerunFailedJobsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\rerun-failed-jobs +// ItemItemActionsRunsItemRerunFailedJobsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\rerun-failed-jobs type ItemItemActionsRunsItemRerunFailedJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemRerunFailedJobsRequestBuilderInternal instantiates a new ItemItemActionsRunsItemRerunFailedJobsRequestBuilder and sets the default values. func NewItemItemActionsRunsItemRerunFailedJobsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemRerunFailedJobsRequestBuilder) { m := &ItemItemActionsRunsItemRerunFailedJobsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/rerun-failed-jobs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/rerun-failed-jobs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_rerun_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_rerun_request_builder.go index 1004453f..ee4ac10a 100644 --- a/pkg/github/repos/item_item_actions_runs_item_rerun_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_rerun_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemRerunRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\rerun +// ItemItemActionsRunsItemRerunRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\rerun type ItemItemActionsRunsItemRerunRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemRerunRequestBuilderInternal instantiates a new ItemItemActionsRunsItemRerunRequestBuilder and sets the default values. func NewItemItemActionsRunsItemRerunRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemRerunRequestBuilder) { m := &ItemItemActionsRunsItemRerunRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/rerun", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/rerun", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_item_timing_request_builder.go b/pkg/github/repos/item_item_actions_runs_item_timing_request_builder.go index 176b36b6..255a832d 100644 --- a/pkg/github/repos/item_item_actions_runs_item_timing_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_item_timing_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsItemTimingRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id}\timing +// ItemItemActionsRunsItemTimingRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id}\timing type ItemItemActionsRunsItemTimingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsRunsItemTimingRequestBuilderInternal instantiates a new ItemItemActionsRunsItemTimingRequestBuilder and sets the default values. func NewItemItemActionsRunsItemTimingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsItemTimingRequestBuilder) { m := &ItemItemActionsRunsItemTimingRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}/timing", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}/timing", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_request_builder.go b/pkg/github/repos/item_item_actions_runs_request_builder.go index 2a2d4f91..46d1d7c7 100644 --- a/pkg/github/repos/item_item_actions_runs_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_request_builder.go @@ -8,7 +8,7 @@ import ( ib50fd1a31f59a50cad835d1bac105bcca1f781f781bbe17e66a476cfdf7485c8 "github.com/octokit/go-sdk/pkg/github/repos/item/item/actions/runs" ) -// ItemItemActionsRunsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs +// ItemItemActionsRunsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs type ItemItemActionsRunsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -48,7 +48,7 @@ func (m *ItemItemActionsRunsRequestBuilder) ByRun_id(run_id int32)(*ItemItemActi // NewItemItemActionsRunsRequestBuilderInternal instantiates a new ItemItemActionsRunsRequestBuilder and sets the default values. func NewItemItemActionsRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsRequestBuilder) { m := &ItemItemActionsRunsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs{?actor*,branch*,check_suite_id*,created*,event*,exclude_pull_requests*,head_sha*,page*,per_page*,status*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs{?actor*,branch*,check_suite_id*,created*,event*,exclude_pull_requests*,head_sha*,page*,per_page*,status*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_runs_with_run_item_request_builder.go b/pkg/github/repos/item_item_actions_runs_with_run_item_request_builder.go index 9beffd0f..9e042c7b 100644 --- a/pkg/github/repos/item_item_actions_runs_with_run_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_runs_with_run_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsRunsWithRun_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\runs\{run_id} +// ItemItemActionsRunsWithRun_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\runs\{run_id} type ItemItemActionsRunsWithRun_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -43,7 +43,7 @@ func (m *ItemItemActionsRunsWithRun_ItemRequestBuilder) Cancel()(*ItemItemAction // NewItemItemActionsRunsWithRun_ItemRequestBuilderInternal instantiates a new ItemItemActionsRunsWithRun_ItemRequestBuilder and sets the default values. func NewItemItemActionsRunsWithRun_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsRunsWithRun_ItemRequestBuilder) { m := &ItemItemActionsRunsWithRun_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}{?exclude_pull_requests*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}{?exclude_pull_requests*}", pathParameters), } return m } @@ -130,7 +130,7 @@ func (m *ItemItemActionsRunsWithRun_ItemRequestBuilder) Timing()(*ItemItemAction // ToDeleteRequestInformation deletes a specific workflow run.Anyone with write access to the repository can use this endpoint.If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemActionsRunsWithRun_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/runs/{run_id}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/runs/{run_id}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) return requestInfo, nil } diff --git a/pkg/github/repos/item_item_actions_secrets_public_key_request_builder.go b/pkg/github/repos/item_item_actions_secrets_public_key_request_builder.go index 779b0fee..5e7d9e05 100644 --- a/pkg/github/repos/item_item_actions_secrets_public_key_request_builder.go +++ b/pkg/github/repos/item_item_actions_secrets_public_key_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\secrets\public-key +// ItemItemActionsSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\secrets\public-key type ItemItemActionsSecretsPublicKeyRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsSecretsPublicKeyRequestBuilderInternal instantiates a new ItemItemActionsSecretsPublicKeyRequestBuilder and sets the default values. func NewItemItemActionsSecretsPublicKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsSecretsPublicKeyRequestBuilder) { m := &ItemItemActionsSecretsPublicKeyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/secrets/public-key", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/secrets/public-key", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_secrets_request_builder.go b/pkg/github/repos/item_item_actions_secrets_request_builder.go index ee13ddb2..02c4bf0e 100644 --- a/pkg/github/repos/item_item_actions_secrets_request_builder.go +++ b/pkg/github/repos/item_item_actions_secrets_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsSecretsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\secrets +// ItemItemActionsSecretsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\secrets type ItemItemActionsSecretsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemActionsSecretsRequestBuilder) BySecret_name(secret_name string) // NewItemItemActionsSecretsRequestBuilderInternal instantiates a new ItemItemActionsSecretsRequestBuilder and sets the default values. func NewItemItemActionsSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsSecretsRequestBuilder) { m := &ItemItemActionsSecretsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/secrets{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/secrets{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_secrets_with_secret_name_item_request_builder.go b/pkg/github/repos/item_item_actions_secrets_with_secret_name_item_request_builder.go index 5b5d6da8..07b7a0fe 100644 --- a/pkg/github/repos/item_item_actions_secrets_with_secret_name_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_secrets_with_secret_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\secrets\{secret_name} +// ItemItemActionsSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\secrets\{secret_name} type ItemItemActionsSecretsWithSecret_nameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsSecretsWithSecret_nameItemRequestBuilderInternal instantiates a new ItemItemActionsSecretsWithSecret_nameItemRequestBuilder and sets the default values. func NewItemItemActionsSecretsWithSecret_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsSecretsWithSecret_nameItemRequestBuilder) { m := &ItemItemActionsSecretsWithSecret_nameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/secrets/{secret_name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/secrets/{secret_name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_variables_request_builder.go b/pkg/github/repos/item_item_actions_variables_request_builder.go index 81d5222d..8e64e791 100644 --- a/pkg/github/repos/item_item_actions_variables_request_builder.go +++ b/pkg/github/repos/item_item_actions_variables_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsVariablesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\variables +// ItemItemActionsVariablesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\variables type ItemItemActionsVariablesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -32,7 +32,7 @@ func (m *ItemItemActionsVariablesRequestBuilder) ByName(name string)(*ItemItemAc // NewItemItemActionsVariablesRequestBuilderInternal instantiates a new ItemItemActionsVariablesRequestBuilder and sets the default values. func NewItemItemActionsVariablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsVariablesRequestBuilder) { m := &ItemItemActionsVariablesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/variables{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/variables{?page*,per_page*}", pathParameters), } return m } @@ -91,7 +91,7 @@ func (m *ItemItemActionsVariablesRequestBuilder) ToGetRequestInformation(ctx con // ToPostRequestInformation creates a repository variable that you can reference in a GitHub Actions workflow.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemActionsVariablesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemActionsVariablesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/variables", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/variables", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_actions_variables_with_name_item_request_builder.go b/pkg/github/repos/item_item_actions_variables_with_name_item_request_builder.go index 6f9822bb..65510a2b 100644 --- a/pkg/github/repos/item_item_actions_variables_with_name_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_variables_with_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsVariablesWithNameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\variables\{name} +// ItemItemActionsVariablesWithNameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\variables\{name} type ItemItemActionsVariablesWithNameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsVariablesWithNameItemRequestBuilderInternal instantiates a new ItemItemActionsVariablesWithNameItemRequestBuilder and sets the default values. func NewItemItemActionsVariablesWithNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsVariablesWithNameItemRequestBuilder) { m := &ItemItemActionsVariablesWithNameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/variables/{name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/variables/{name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_item_disable_request_builder.go b/pkg/github/repos/item_item_actions_workflows_item_disable_request_builder.go index 124d0f0d..2c16ae01 100644 --- a/pkg/github/repos/item_item_actions_workflows_item_disable_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_item_disable_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsWorkflowsItemDisableRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows\{workflow_id}\disable +// ItemItemActionsWorkflowsItemDisableRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\disable type ItemItemActionsWorkflowsItemDisableRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsWorkflowsItemDisableRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsItemDisableRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsItemDisableRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsItemDisableRequestBuilder) { m := &ItemItemActionsWorkflowsItemDisableRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows/{workflow_id}/disable", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows/{workflow_id}/disable", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_item_dispatches_request_builder.go b/pkg/github/repos/item_item_actions_workflows_item_dispatches_request_builder.go index e39634e1..1d4f12a3 100644 --- a/pkg/github/repos/item_item_actions_workflows_item_dispatches_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_item_dispatches_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsWorkflowsItemDispatchesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows\{workflow_id}\dispatches +// ItemItemActionsWorkflowsItemDispatchesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\dispatches type ItemItemActionsWorkflowsItemDispatchesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsWorkflowsItemDispatchesRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsItemDispatchesRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsItemDispatchesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsItemDispatchesRequestBuilder) { m := &ItemItemActionsWorkflowsItemDispatchesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows/{workflow_id}/dispatches", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows/{workflow_id}/dispatches", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_item_enable_request_builder.go b/pkg/github/repos/item_item_actions_workflows_item_enable_request_builder.go index b6a290a3..37fd5a7d 100644 --- a/pkg/github/repos/item_item_actions_workflows_item_enable_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_item_enable_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsWorkflowsItemEnableRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows\{workflow_id}\enable +// ItemItemActionsWorkflowsItemEnableRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\enable type ItemItemActionsWorkflowsItemEnableRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsWorkflowsItemEnableRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsItemEnableRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsItemEnableRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsItemEnableRequestBuilder) { m := &ItemItemActionsWorkflowsItemEnableRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows/{workflow_id}/enable", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows/{workflow_id}/enable", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_item_runs_request_builder.go b/pkg/github/repos/item_item_actions_workflows_item_runs_request_builder.go index 48999c6b..8cae76d1 100644 --- a/pkg/github/repos/item_item_actions_workflows_item_runs_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_item_runs_request_builder.go @@ -7,7 +7,7 @@ import ( ia77747759b3f91e25296248277ed17f00dd8b68db982a03262ffc61b4720274c "github.com/octokit/go-sdk/pkg/github/repos/item/item/actions/workflows/item/runs" ) -// ItemItemActionsWorkflowsItemRunsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows\{workflow_id}\runs +// ItemItemActionsWorkflowsItemRunsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\runs type ItemItemActionsWorkflowsItemRunsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -37,7 +37,7 @@ type ItemItemActionsWorkflowsItemRunsRequestBuilderGetQueryParameters struct { // NewItemItemActionsWorkflowsItemRunsRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsItemRunsRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsItemRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsItemRunsRequestBuilder) { m := &ItemItemActionsWorkflowsItemRunsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows/{workflow_id}/runs{?actor*,branch*,check_suite_id*,created*,event*,exclude_pull_requests*,head_sha*,page*,per_page*,status*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows/{workflow_id}/runs{?actor*,branch*,check_suite_id*,created*,event*,exclude_pull_requests*,head_sha*,page*,per_page*,status*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_item_timing_request_builder.go b/pkg/github/repos/item_item_actions_workflows_item_timing_request_builder.go index c00bcd00..0de1722c 100644 --- a/pkg/github/repos/item_item_actions_workflows_item_timing_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_item_timing_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsWorkflowsItemTimingRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows\{workflow_id}\timing +// ItemItemActionsWorkflowsItemTimingRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id}\timing type ItemItemActionsWorkflowsItemTimingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsWorkflowsItemTimingRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsItemTimingRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsItemTimingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsItemTimingRequestBuilder) { m := &ItemItemActionsWorkflowsItemTimingRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows/{workflow_id}/timing", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows/{workflow_id}/timing", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_request_builder.go b/pkg/github/repos/item_item_actions_workflows_request_builder.go index 6bfdbaa5..e432a645 100644 --- a/pkg/github/repos/item_item_actions_workflows_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_request_builder.go @@ -6,7 +6,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemActionsWorkflowsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows +// ItemItemActionsWorkflowsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows type ItemItemActionsWorkflowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -30,7 +30,7 @@ func (m *ItemItemActionsWorkflowsRequestBuilder) ByWorkflow_id(workflow_id int32 // NewItemItemActionsWorkflowsRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsRequestBuilder) { m := &ItemItemActionsWorkflowsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_actions_workflows_with_workflow_item_request_builder.go b/pkg/github/repos/item_item_actions_workflows_with_workflow_item_request_builder.go index e8aa7a36..d52d9260 100644 --- a/pkg/github/repos/item_item_actions_workflows_with_workflow_item_request_builder.go +++ b/pkg/github/repos/item_item_actions_workflows_with_workflow_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\actions\workflows\{workflow_id} +// ItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\actions\workflows\{workflow_id} type ItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilderInternal instantiates a new ItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilder and sets the default values. func NewItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilder) { m := &ItemItemActionsWorkflowsWithWorkflow_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/actions/workflows/{workflow_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/actions/workflows/{workflow_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_activity_request_builder.go b/pkg/github/repos/item_item_activity_request_builder.go index a11b1cb5..25b3aaf7 100644 --- a/pkg/github/repos/item_item_activity_request_builder.go +++ b/pkg/github/repos/item_item_activity_request_builder.go @@ -7,7 +7,7 @@ import ( ia4d3c00087c8cd3d0487630fd16ea548b5ca8c46c90d4b6d272efa6624a02bb6 "github.com/octokit/go-sdk/pkg/github/repos/item/item/activity" ) -// ItemItemActivityRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\activity +// ItemItemActivityRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\activity type ItemItemActivityRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -33,7 +33,7 @@ type ItemItemActivityRequestBuilderGetQueryParameters struct { // NewItemItemActivityRequestBuilderInternal instantiates a new ItemItemActivityRequestBuilder and sets the default values. func NewItemItemActivityRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemActivityRequestBuilder) { m := &ItemItemActivityRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/activity{?activity_type*,actor*,after*,before*,direction*,per_page*,ref*,time_period*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/activity{?activity_type*,actor*,after*,before*,direction*,per_page*,ref*,time_period*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_assignees_request_builder.go b/pkg/github/repos/item_item_assignees_request_builder.go index 5844b34c..3b7c9947 100644 --- a/pkg/github/repos/item_item_assignees_request_builder.go +++ b/pkg/github/repos/item_item_assignees_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemAssigneesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\assignees +// ItemItemAssigneesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\assignees type ItemItemAssigneesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -32,7 +32,7 @@ func (m *ItemItemAssigneesRequestBuilder) ByAssignee(assignee string)(*ItemItemA // NewItemItemAssigneesRequestBuilderInternal instantiates a new ItemItemAssigneesRequestBuilder and sets the default values. func NewItemItemAssigneesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemAssigneesRequestBuilder) { m := &ItemItemAssigneesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/assignees{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/assignees{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_assignees_with_assignee_item_request_builder.go b/pkg/github/repos/item_item_assignees_with_assignee_item_request_builder.go index 2da75992..c72290c3 100644 --- a/pkg/github/repos/item_item_assignees_with_assignee_item_request_builder.go +++ b/pkg/github/repos/item_item_assignees_with_assignee_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemAssigneesWithAssigneeItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\assignees\{assignee} +// ItemItemAssigneesWithAssigneeItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\assignees\{assignee} type ItemItemAssigneesWithAssigneeItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemAssigneesWithAssigneeItemRequestBuilderInternal instantiates a new ItemItemAssigneesWithAssigneeItemRequestBuilder and sets the default values. func NewItemItemAssigneesWithAssigneeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemAssigneesWithAssigneeItemRequestBuilder) { m := &ItemItemAssigneesWithAssigneeItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/assignees/{assignee}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/assignees/{assignee}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_autolinks_request_builder.go b/pkg/github/repos/item_item_autolinks_request_builder.go index 00555115..98660dab 100644 --- a/pkg/github/repos/item_item_autolinks_request_builder.go +++ b/pkg/github/repos/item_item_autolinks_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemAutolinksRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\autolinks +// ItemItemAutolinksRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\autolinks type ItemItemAutolinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -24,7 +24,7 @@ func (m *ItemItemAutolinksRequestBuilder) ByAutolink_id(autolink_id int32)(*Item // NewItemItemAutolinksRequestBuilderInternal instantiates a new ItemItemAutolinksRequestBuilder and sets the default values. func NewItemItemAutolinksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemAutolinksRequestBuilder) { m := &ItemItemAutolinksRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/autolinks", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/autolinks", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_autolinks_with_autolink_item_request_builder.go b/pkg/github/repos/item_item_autolinks_with_autolink_item_request_builder.go index c2d2e003..192e0a72 100644 --- a/pkg/github/repos/item_item_autolinks_with_autolink_item_request_builder.go +++ b/pkg/github/repos/item_item_autolinks_with_autolink_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemAutolinksWithAutolink_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\autolinks\{autolink_id} +// ItemItemAutolinksWithAutolink_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\autolinks\{autolink_id} type ItemItemAutolinksWithAutolink_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemAutolinksWithAutolink_ItemRequestBuilderInternal instantiates a new ItemItemAutolinksWithAutolink_ItemRequestBuilder and sets the default values. func NewItemItemAutolinksWithAutolink_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemAutolinksWithAutolink_ItemRequestBuilder) { m := &ItemItemAutolinksWithAutolink_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/autolinks/{autolink_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/autolinks/{autolink_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_automated_security_fixes_request_builder.go b/pkg/github/repos/item_item_automated_security_fixes_request_builder.go index 49b37f6b..35e4fc86 100644 --- a/pkg/github/repos/item_item_automated_security_fixes_request_builder.go +++ b/pkg/github/repos/item_item_automated_security_fixes_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemAutomatedSecurityFixesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\automated-security-fixes +// ItemItemAutomatedSecurityFixesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\automated-security-fixes type ItemItemAutomatedSecurityFixesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemAutomatedSecurityFixesRequestBuilderInternal instantiates a new ItemItemAutomatedSecurityFixesRequestBuilder and sets the default values. func NewItemItemAutomatedSecurityFixesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemAutomatedSecurityFixesRequestBuilder) { m := &ItemItemAutomatedSecurityFixesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/automated-security-fixes", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/automated-security-fixes", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_enforce_admins_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_enforce_admins_request_builder.go index 8b6dc637..f804a8db 100644 --- a/pkg/github/repos/item_item_branches_item_protection_enforce_admins_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_enforce_admins_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionEnforce_adminsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\enforce_admins +// ItemItemBranchesItemProtectionEnforce_adminsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\enforce_admins type ItemItemBranchesItemProtectionEnforce_adminsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesItemProtectionEnforce_adminsRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionEnforce_adminsRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionEnforce_adminsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionEnforce_adminsRequestBuilder) { m := &ItemItemBranchesItemProtectionEnforce_adminsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/enforce_admins", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/enforce_admins", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_request_builder.go index 8f9f79aa..54de8ead 100644 --- a/pkg/github/repos/item_item_branches_item_protection_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection +// ItemItemBranchesItemProtectionRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection type ItemItemBranchesItemProtectionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesItemProtectionRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRequestBuilder) { m := &ItemItemBranchesItemProtectionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_required_pull_request_reviews_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_required_pull_request_reviews_request_builder.go index d9bb6320..6e801f65 100644 --- a/pkg/github/repos/item_item_branches_item_protection_required_pull_request_reviews_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_required_pull_request_reviews_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\required_pull_request_reviews +// ItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_pull_request_reviews type ItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilder) { m := &ItemItemBranchesItemProtectionRequired_pull_request_reviewsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/required_pull_request_reviews", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/required_pull_request_reviews", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_required_signatures_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_required_signatures_request_builder.go index adad4bc9..9bbdf9b6 100644 --- a/pkg/github/repos/item_item_branches_item_protection_required_signatures_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_required_signatures_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRequired_signaturesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\required_signatures +// ItemItemBranchesItemProtectionRequired_signaturesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_signatures type ItemItemBranchesItemProtectionRequired_signaturesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesItemProtectionRequired_signaturesRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRequired_signaturesRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRequired_signaturesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRequired_signaturesRequestBuilder) { m := &ItemItemBranchesItemProtectionRequired_signaturesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/required_signatures", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/required_signatures", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_required_status_checks_contexts_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_required_status_checks_contexts_request_builder.go index 08c3b8ec..87785124 100644 --- a/pkg/github/repos/item_item_branches_item_protection_required_status_checks_contexts_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_required_status_checks_contexts_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\required_status_checks\contexts +// ItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_status_checks\contexts type ItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -404,7 +404,7 @@ type ContextsPutRequestBodyable interface { // NewItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilder) { m := &ItemItemBranchesItemProtectionRequired_status_checksContextsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/required_status_checks/contexts", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/required_status_checks/contexts", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_required_status_checks_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_required_status_checks_request_builder.go index 5b04cbd1..31d91b9a 100644 --- a/pkg/github/repos/item_item_branches_item_protection_required_status_checks_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_required_status_checks_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRequired_status_checksRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\required_status_checks +// ItemItemBranchesItemProtectionRequired_status_checksRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\required_status_checks type ItemItemBranchesItemProtectionRequired_status_checksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesItemProtectionRequired_status_checksRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRequired_status_checksRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRequired_status_checksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRequired_status_checksRequestBuilder) { m := &ItemItemBranchesItemProtectionRequired_status_checksRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/required_status_checks", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/required_status_checks", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_restrictions_apps_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_restrictions_apps_request_builder.go index df0747e8..cae6efd9 100644 --- a/pkg/github/repos/item_item_branches_item_protection_restrictions_apps_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_restrictions_apps_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRestrictionsAppsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\restrictions\apps +// ItemItemBranchesItemProtectionRestrictionsAppsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions\apps type ItemItemBranchesItemProtectionRestrictionsAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -404,7 +404,7 @@ type AppsPutRequestBodyable interface { // NewItemItemBranchesItemProtectionRestrictionsAppsRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRestrictionsAppsRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRestrictionsAppsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRestrictionsAppsRequestBuilder) { m := &ItemItemBranchesItemProtectionRestrictionsAppsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/restrictions/apps", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/restrictions/apps", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_restrictions_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_restrictions_request_builder.go index 08c36020..67ae5e27 100644 --- a/pkg/github/repos/item_item_branches_item_protection_restrictions_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_restrictions_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRestrictionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\restrictions +// ItemItemBranchesItemProtectionRestrictionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions type ItemItemBranchesItemProtectionRestrictionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemBranchesItemProtectionRestrictionsRequestBuilder) Apps()(*ItemI // NewItemItemBranchesItemProtectionRestrictionsRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRestrictionsRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRestrictionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRestrictionsRequestBuilder) { m := &ItemItemBranchesItemProtectionRestrictionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/restrictions", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/restrictions", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_restrictions_teams_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_restrictions_teams_request_builder.go index fe07af14..b888d42d 100644 --- a/pkg/github/repos/item_item_branches_item_protection_restrictions_teams_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_restrictions_teams_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\restrictions\teams +// ItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions\teams type ItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -404,7 +404,7 @@ type TeamsPutRequestBodyable interface { // NewItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilder) { m := &ItemItemBranchesItemProtectionRestrictionsTeamsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/restrictions/teams", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/restrictions/teams", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_protection_restrictions_users_request_builder.go b/pkg/github/repos/item_item_branches_item_protection_restrictions_users_request_builder.go index 46b9a177..d59603ec 100644 --- a/pkg/github/repos/item_item_branches_item_protection_restrictions_users_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_protection_restrictions_users_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemProtectionRestrictionsUsersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\protection\restrictions\users +// ItemItemBranchesItemProtectionRestrictionsUsersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\protection\restrictions\users type ItemItemBranchesItemProtectionRestrictionsUsersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -404,7 +404,7 @@ type UsersPutRequestBodyable interface { // NewItemItemBranchesItemProtectionRestrictionsUsersRequestBuilderInternal instantiates a new ItemItemBranchesItemProtectionRestrictionsUsersRequestBuilder and sets the default values. func NewItemItemBranchesItemProtectionRestrictionsUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemProtectionRestrictionsUsersRequestBuilder) { m := &ItemItemBranchesItemProtectionRestrictionsUsersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/protection/restrictions/users", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/protection/restrictions/users", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_item_rename_request_builder.go b/pkg/github/repos/item_item_branches_item_rename_request_builder.go index a4af1787..08f3b0ea 100644 --- a/pkg/github/repos/item_item_branches_item_rename_request_builder.go +++ b/pkg/github/repos/item_item_branches_item_rename_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesItemRenameRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch}\rename +// ItemItemBranchesItemRenameRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch}\rename type ItemItemBranchesItemRenameRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesItemRenameRequestBuilderInternal instantiates a new ItemItemBranchesItemRenameRequestBuilder and sets the default values. func NewItemItemBranchesItemRenameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesItemRenameRequestBuilder) { m := &ItemItemBranchesItemRenameRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}/rename", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}/rename", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_request_builder.go b/pkg/github/repos/item_item_branches_request_builder.go index b5ebe622..3638e06f 100644 --- a/pkg/github/repos/item_item_branches_request_builder.go +++ b/pkg/github/repos/item_item_branches_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches +// ItemItemBranchesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches type ItemItemBranchesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -34,7 +34,7 @@ func (m *ItemItemBranchesRequestBuilder) ByBranch(branch string)(*ItemItemBranch // NewItemItemBranchesRequestBuilderInternal instantiates a new ItemItemBranchesRequestBuilder and sets the default values. func NewItemItemBranchesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesRequestBuilder) { m := &ItemItemBranchesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches{?page*,per_page*,protected*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches{?page*,per_page*,protected*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_branches_with_branch_item_request_builder.go b/pkg/github/repos/item_item_branches_with_branch_item_request_builder.go index a372212b..c57caaa9 100644 --- a/pkg/github/repos/item_item_branches_with_branch_item_request_builder.go +++ b/pkg/github/repos/item_item_branches_with_branch_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemBranchesWithBranchItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\branches\{branch} +// ItemItemBranchesWithBranchItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\branches\{branch} type ItemItemBranchesWithBranchItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemBranchesWithBranchItemRequestBuilderInternal instantiates a new ItemItemBranchesWithBranchItemRequestBuilder and sets the default values. func NewItemItemBranchesWithBranchItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemBranchesWithBranchItemRequestBuilder) { m := &ItemItemBranchesWithBranchItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/branches/{branch}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/branches/{branch}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go b/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go index 9ea13f6d..bb34c354 100644 --- a/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go +++ b/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckRunsItemAnnotationsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-runs\{check_run_id}\annotations +// ItemItemCheckRunsItemAnnotationsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs\{check_run_id}\annotations type ItemItemCheckRunsItemAnnotationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCheckRunsItemAnnotationsRequestBuilderGetQueryParameters struct { // NewItemItemCheckRunsItemAnnotationsRequestBuilderInternal instantiates a new ItemItemCheckRunsItemAnnotationsRequestBuilder and sets the default values. func NewItemItemCheckRunsItemAnnotationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckRunsItemAnnotationsRequestBuilder) { m := &ItemItemCheckRunsItemAnnotationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-runs/{check_run_id}/annotations{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-runs/{check_run_id}/annotations{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go b/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go index 751f868f..9f10ed62 100644 --- a/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go +++ b/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckRunsItemRerequestRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-runs\{check_run_id}\rerequest +// ItemItemCheckRunsItemRerequestRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs\{check_run_id}\rerequest type ItemItemCheckRunsItemRerequestRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCheckRunsItemRerequestRequestBuilderInternal instantiates a new ItemItemCheckRunsItemRerequestRequestBuilder and sets the default values. func NewItemItemCheckRunsItemRerequestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckRunsItemRerequestRequestBuilder) { m := &ItemItemCheckRunsItemRerequestRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-runs/{check_run_id}/rerequest", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-runs/{check_run_id}/rerequest", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_runs_request_builder.go b/pkg/github/repos/item_item_check_runs_request_builder.go index f18f48ff..91ad9876 100644 --- a/pkg/github/repos/item_item_check_runs_request_builder.go +++ b/pkg/github/repos/item_item_check_runs_request_builder.go @@ -8,7 +8,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckRunsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-runs +// ItemItemCheckRunsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs type ItemItemCheckRunsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -144,7 +144,7 @@ func (m *ItemItemCheckRunsRequestBuilder) ByCheck_run_id(check_run_id int32)(*It // NewItemItemCheckRunsRequestBuilderInternal instantiates a new ItemItemCheckRunsRequestBuilder and sets the default values. func NewItemItemCheckRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckRunsRequestBuilder) { m := &ItemItemCheckRunsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-runs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-runs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go b/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go index b1c120d7..e27ee358 100644 --- a/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go +++ b/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckRunsWithCheck_run_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-runs\{check_run_id} +// ItemItemCheckRunsWithCheck_run_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-runs\{check_run_id} type ItemItemCheckRunsWithCheck_run_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -155,7 +155,7 @@ func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) Annotations()(*ItemI // NewItemItemCheckRunsWithCheck_run_ItemRequestBuilderInternal instantiates a new ItemItemCheckRunsWithCheck_run_ItemRequestBuilder and sets the default values. func NewItemItemCheckRunsWithCheck_run_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) { m := &ItemItemCheckRunsWithCheck_run_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-runs/{check_run_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-runs/{check_run_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go b/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go index d982410c..d09f2f50 100644 --- a/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go +++ b/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go @@ -6,7 +6,7 @@ import ( i81721daf4afe64f77b2b79b27ec44ce9325b9e20e6f9737c000fdcbda4772f33 "github.com/octokit/go-sdk/pkg/github/repos/item/item/checksuites/item/checkruns" ) -// ItemItemCheckSuitesItemCheckRunsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-suites\{check_suite_id}\check-runs +// ItemItemCheckSuitesItemCheckRunsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\{check_suite_id}\check-runs type ItemItemCheckSuitesItemCheckRunsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -26,7 +26,7 @@ type ItemItemCheckSuitesItemCheckRunsRequestBuilderGetQueryParameters struct { // NewItemItemCheckSuitesItemCheckRunsRequestBuilderInternal instantiates a new ItemItemCheckSuitesItemCheckRunsRequestBuilder and sets the default values. func NewItemItemCheckSuitesItemCheckRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckSuitesItemCheckRunsRequestBuilder) { m := &ItemItemCheckSuitesItemCheckRunsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-suites/{check_suite_id}/check-runs{?check_name*,filter*,page*,per_page*,status*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-suites/{check_suite_id}/check-runs{?check_name*,filter*,page*,per_page*,status*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go b/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go index e06e2474..3b46beab 100644 --- a/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go +++ b/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckSuitesItemRerequestRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-suites\{check_suite_id}\rerequest +// ItemItemCheckSuitesItemRerequestRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\{check_suite_id}\rerequest type ItemItemCheckSuitesItemRerequestRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCheckSuitesItemRerequestRequestBuilderInternal instantiates a new ItemItemCheckSuitesItemRerequestRequestBuilder and sets the default values. func NewItemItemCheckSuitesItemRerequestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckSuitesItemRerequestRequestBuilder) { m := &ItemItemCheckSuitesItemRerequestRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-suites/{check_suite_id}/rerequest", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-suites/{check_suite_id}/rerequest", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_suites_preferences_request_builder.go b/pkg/github/repos/item_item_check_suites_preferences_request_builder.go index 3b4e3cd0..8e7cbd3a 100644 --- a/pkg/github/repos/item_item_check_suites_preferences_request_builder.go +++ b/pkg/github/repos/item_item_check_suites_preferences_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckSuitesPreferencesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-suites\preferences +// ItemItemCheckSuitesPreferencesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\preferences type ItemItemCheckSuitesPreferencesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCheckSuitesPreferencesRequestBuilderInternal instantiates a new ItemItemCheckSuitesPreferencesRequestBuilder and sets the default values. func NewItemItemCheckSuitesPreferencesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckSuitesPreferencesRequestBuilder) { m := &ItemItemCheckSuitesPreferencesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-suites/preferences", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-suites/preferences", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_suites_request_builder.go b/pkg/github/repos/item_item_check_suites_request_builder.go index bd44b833..44de24fd 100644 --- a/pkg/github/repos/item_item_check_suites_request_builder.go +++ b/pkg/github/repos/item_item_check_suites_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckSuitesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-suites +// ItemItemCheckSuitesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites type ItemItemCheckSuitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -24,7 +24,7 @@ func (m *ItemItemCheckSuitesRequestBuilder) ByCheck_suite_id(check_suite_id int3 // NewItemItemCheckSuitesRequestBuilderInternal instantiates a new ItemItemCheckSuitesRequestBuilder and sets the default values. func NewItemItemCheckSuitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckSuitesRequestBuilder) { m := &ItemItemCheckSuitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-suites", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-suites", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go b/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go index a2d13340..3c36e860 100644 --- a/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go +++ b/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\check-suites\{check_suite_id} +// ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\check-suites\{check_suite_id} type ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder) CheckRuns()(*Ite // NewItemItemCheckSuitesWithCheck_suite_ItemRequestBuilderInternal instantiates a new ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder and sets the default values. func NewItemItemCheckSuitesWithCheck_suite_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder) { m := &ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/check-suites/{check_suite_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/check-suites/{check_suite_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_alerts_item_instances_request_builder.go b/pkg/github/repos/item_item_code_scanning_alerts_item_instances_request_builder.go index abd0c9e3..bc668a47 100644 --- a/pkg/github/repos/item_item_code_scanning_alerts_item_instances_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_alerts_item_instances_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningAlertsItemInstancesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\alerts\{alert_number}\instances +// ItemItemCodeScanningAlertsItemInstancesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\alerts\{alert_number}\instances type ItemItemCodeScanningAlertsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ type ItemItemCodeScanningAlertsItemInstancesRequestBuilderGetQueryParameters str // NewItemItemCodeScanningAlertsItemInstancesRequestBuilderInternal instantiates a new ItemItemCodeScanningAlertsItemInstancesRequestBuilder and sets the default values. func NewItemItemCodeScanningAlertsItemInstancesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningAlertsItemInstancesRequestBuilder) { m := &ItemItemCodeScanningAlertsItemInstancesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/alerts/{alert_number}/instances{?page*,per_page*,ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts/{alert_number}/instances{?page*,per_page*,ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_alerts_request_builder.go b/pkg/github/repos/item_item_code_scanning_alerts_request_builder.go index 4ec08362..b72e58d2 100644 --- a/pkg/github/repos/item_item_code_scanning_alerts_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_alerts_request_builder.go @@ -8,7 +8,7 @@ import ( id6219ca61a285d774ef018a9a4ff7bdb0938800fad8b8d12f8b2e59ee8d18fcd "github.com/octokit/go-sdk/pkg/github/repos/item/item/codescanning/alerts" ) -// ItemItemCodeScanningAlertsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\alerts +// ItemItemCodeScanningAlertsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\alerts type ItemItemCodeScanningAlertsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -46,7 +46,7 @@ func (m *ItemItemCodeScanningAlertsRequestBuilder) ByAlert_number(alert_number i // NewItemItemCodeScanningAlertsRequestBuilderInternal instantiates a new ItemItemCodeScanningAlertsRequestBuilder and sets the default values. func NewItemItemCodeScanningAlertsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningAlertsRequestBuilder) { m := &ItemItemCodeScanningAlertsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/alerts{?direction*,page*,per_page*,ref*,severity*,sort*,state*,tool_guid*,tool_name*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts{?direction*,page*,per_page*,ref*,severity*,sort*,state*,tool_guid*,tool_name*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_alerts_with_alert_number_item_request_builder.go b/pkg/github/repos/item_item_code_scanning_alerts_with_alert_number_item_request_builder.go index ee43f2e0..628feae3 100644 --- a/pkg/github/repos/item_item_code_scanning_alerts_with_alert_number_item_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_alerts_with_alert_number_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\alerts\{alert_number} +// ItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\alerts\{alert_number} type ItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilderInternal instantiates a new ItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilder and sets the default values. func NewItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilder) { m := &ItemItemCodeScanningAlertsWithAlert_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/alerts/{alert_number}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts/{alert_number}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_analyses_request_builder.go b/pkg/github/repos/item_item_code_scanning_analyses_request_builder.go index 3c2d8bf5..f7baa505 100644 --- a/pkg/github/repos/item_item_code_scanning_analyses_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_analyses_request_builder.go @@ -8,7 +8,7 @@ import ( ic8ccce7f7df3354ee09c704fd2c3c7a95354f442dcd3fefc8778b101a690d643 "github.com/octokit/go-sdk/pkg/github/repos/item/item/codescanning/analyses" ) -// ItemItemCodeScanningAnalysesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\analyses +// ItemItemCodeScanningAnalysesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\analyses type ItemItemCodeScanningAnalysesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -44,7 +44,7 @@ func (m *ItemItemCodeScanningAnalysesRequestBuilder) ByAnalysis_id(analysis_id i // NewItemItemCodeScanningAnalysesRequestBuilderInternal instantiates a new ItemItemCodeScanningAnalysesRequestBuilder and sets the default values. func NewItemItemCodeScanningAnalysesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningAnalysesRequestBuilder) { m := &ItemItemCodeScanningAnalysesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/analyses{?direction*,page*,per_page*,ref*,sarif_id*,sort*,tool_guid*,tool_name*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/analyses{?direction*,page*,per_page*,ref*,sarif_id*,sort*,tool_guid*,tool_name*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_analyses_with_analysis_item_request_builder.go b/pkg/github/repos/item_item_code_scanning_analyses_with_analysis_item_request_builder.go index a3449ee6..8bc924ee 100644 --- a/pkg/github/repos/item_item_code_scanning_analyses_with_analysis_item_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_analyses_with_analysis_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\analyses\{analysis_id} +// ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\analyses\{analysis_id} type ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilderDeleteQueryParam // NewItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilderInternal instantiates a new ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder and sets the default values. func NewItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder) { m := &ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/analyses/{analysis_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/analyses/{analysis_id}", pathParameters), } return m } @@ -87,7 +87,7 @@ func (m *ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder) Get(ctx co // ToDeleteRequestInformation deletes a specified code scanning analysis from a repository.You can delete one analysis at a time.To delete a series of analyses, start with the most recent analysis and work backwards.Conceptually, the process is similar to the undo function in a text editor.When you list the analyses for a repository,one or more will be identified as deletable in the response:```"deletable": true```An analysis is deletable when it's the most recent in a set of analyses.Typically, a repository will have multiple sets of analysesfor each enabled code scanning tool,where a set is determined by a unique combination of analysis values:* `ref`* `tool`* `category`If you attempt to delete an analysis that is not the most recent in a set,you'll get a 400 response with the message:```Analysis specified is not deletable.```The response from a successful `DELETE` operation provides you withtwo alternative URLs for deleting the next analysis in the set:`next_analysis_url` and `confirm_delete_url`.Use the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysisin a set. This is a useful option if you want to preserve at least one analysisfor the specified tool in your repository.Use the `confirm_delete_url` URL if you are content to remove all analyses for a tool.When you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`in the 200 response is `null`.As an example of the deletion process,let's imagine that you added a workflow that configured a particular code scanning toolto analyze the code in a repository. This tool has added 15 analyses:10 on the default branch, and another 5 on a topic branch.You therefore have two separate sets of analyses for this tool.You've now decided that you want to remove all of the analyses for the tool.To do this you must make 15 separate deletion requests.To start, you must find an analysis that's identified as deletable.Each set of analyses always has one that's identified as deletable.Having found the deletable analysis for one of the two sets,delete this analysis and then continue deleting the next analysis in the set until they're all deleted.Then repeat the process for the second set.The procedure therefore consists of a nested loop:**Outer loop**:* List the analyses for the repository, filtered by tool.* Parse this list to find a deletable analysis. If found: **Inner loop**: * Delete the identified analysis. * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.The above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. // returns a *RequestInformation when successful func (m *ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemCodeScanningAnalysesWithAnalysis_ItemRequestBuilderDeleteQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/analyses/{analysis_id}{?confirm_delete*}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/analyses/{analysis_id}{?confirm_delete*}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil diff --git a/pkg/github/repos/item_item_code_scanning_codeql_databases_request_builder.go b/pkg/github/repos/item_item_code_scanning_codeql_databases_request_builder.go index 56f34f13..961a6043 100644 --- a/pkg/github/repos/item_item_code_scanning_codeql_databases_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_codeql_databases_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningCodeqlDatabasesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\codeql\databases +// ItemItemCodeScanningCodeqlDatabasesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\databases type ItemItemCodeScanningCodeqlDatabasesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemCodeScanningCodeqlDatabasesRequestBuilder) ByLanguage(language // NewItemItemCodeScanningCodeqlDatabasesRequestBuilderInternal instantiates a new ItemItemCodeScanningCodeqlDatabasesRequestBuilder and sets the default values. func NewItemItemCodeScanningCodeqlDatabasesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningCodeqlDatabasesRequestBuilder) { m := &ItemItemCodeScanningCodeqlDatabasesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/codeql/databases", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/codeql/databases", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_codeql_databases_with_language_item_request_builder.go b/pkg/github/repos/item_item_code_scanning_codeql_databases_with_language_item_request_builder.go index 1a42522e..59f1a44c 100644 --- a/pkg/github/repos/item_item_code_scanning_codeql_databases_with_language_item_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_codeql_databases_with_language_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\codeql\databases\{language} +// ItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql\databases\{language} type ItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilderInternal instantiates a new ItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilder and sets the default values. func NewItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilder) { m := &ItemItemCodeScanningCodeqlDatabasesWithLanguageItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/codeql/databases/{language}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/codeql/databases/{language}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_codeql_request_builder.go b/pkg/github/repos/item_item_code_scanning_codeql_request_builder.go index d0b1fba5..511b4c03 100644 --- a/pkg/github/repos/item_item_code_scanning_codeql_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_codeql_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCodeScanningCodeqlRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\codeql +// ItemItemCodeScanningCodeqlRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\codeql type ItemItemCodeScanningCodeqlRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodeScanningCodeqlRequestBuilderInternal instantiates a new ItemItemCodeScanningCodeqlRequestBuilder and sets the default values. func NewItemItemCodeScanningCodeqlRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningCodeqlRequestBuilder) { m := &ItemItemCodeScanningCodeqlRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/codeql", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/codeql", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_default_setup_request_builder.go b/pkg/github/repos/item_item_code_scanning_default_setup_request_builder.go index 95847233..33b850c2 100644 --- a/pkg/github/repos/item_item_code_scanning_default_setup_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_default_setup_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningDefaultSetupRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\default-setup +// ItemItemCodeScanningDefaultSetupRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\default-setup type ItemItemCodeScanningDefaultSetupRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodeScanningDefaultSetupRequestBuilderInternal instantiates a new ItemItemCodeScanningDefaultSetupRequestBuilder and sets the default values. func NewItemItemCodeScanningDefaultSetupRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningDefaultSetupRequestBuilder) { m := &ItemItemCodeScanningDefaultSetupRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/default-setup", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/default-setup", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_request_builder.go b/pkg/github/repos/item_item_code_scanning_request_builder.go index 58a74ae8..0cbc1bae 100644 --- a/pkg/github/repos/item_item_code_scanning_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCodeScanningRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning +// ItemItemCodeScanningRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning type ItemItemCodeScanningRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -26,7 +26,7 @@ func (m *ItemItemCodeScanningRequestBuilder) Codeql()(*ItemItemCodeScanningCodeq // NewItemItemCodeScanningRequestBuilderInternal instantiates a new ItemItemCodeScanningRequestBuilder and sets the default values. func NewItemItemCodeScanningRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningRequestBuilder) { m := &ItemItemCodeScanningRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go b/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go index 34a60a76..866f934a 100644 --- a/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningSarifsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\sarifs +// ItemItemCodeScanningSarifsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\sarifs type ItemItemCodeScanningSarifsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemCodeScanningSarifsRequestBuilder) BySarif_id(sarif_id string)(* // NewItemItemCodeScanningSarifsRequestBuilderInternal instantiates a new ItemItemCodeScanningSarifsRequestBuilder and sets the default values. func NewItemItemCodeScanningSarifsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningSarifsRequestBuilder) { m := &ItemItemCodeScanningSarifsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/sarifs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/sarifs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_code_scanning_sarifs_with_sarif_item_request_builder.go b/pkg/github/repos/item_item_code_scanning_sarifs_with_sarif_item_request_builder.go index 38aaad35..9c9924ea 100644 --- a/pkg/github/repos/item_item_code_scanning_sarifs_with_sarif_item_request_builder.go +++ b/pkg/github/repos/item_item_code_scanning_sarifs_with_sarif_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeScanningSarifsWithSarif_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\code-scanning\sarifs\{sarif_id} +// ItemItemCodeScanningSarifsWithSarif_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\code-scanning\sarifs\{sarif_id} type ItemItemCodeScanningSarifsWithSarif_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodeScanningSarifsWithSarif_ItemRequestBuilderInternal instantiates a new ItemItemCodeScanningSarifsWithSarif_ItemRequestBuilder and sets the default values. func NewItemItemCodeScanningSarifsWithSarif_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeScanningSarifsWithSarif_ItemRequestBuilder) { m := &ItemItemCodeScanningSarifsWithSarif_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/code-scanning/sarifs/{sarif_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/sarifs/{sarif_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codeowners_errors_request_builder.go b/pkg/github/repos/item_item_codeowners_errors_request_builder.go index 33f571a3..a08612de 100644 --- a/pkg/github/repos/item_item_codeowners_errors_request_builder.go +++ b/pkg/github/repos/item_item_codeowners_errors_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodeownersErrorsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codeowners\errors +// ItemItemCodeownersErrorsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codeowners\errors type ItemItemCodeownersErrorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemCodeownersErrorsRequestBuilderGetQueryParameters struct { // NewItemItemCodeownersErrorsRequestBuilderInternal instantiates a new ItemItemCodeownersErrorsRequestBuilder and sets the default values. func NewItemItemCodeownersErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeownersErrorsRequestBuilder) { m := &ItemItemCodeownersErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codeowners/errors{?ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codeowners/errors{?ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codeowners_request_builder.go b/pkg/github/repos/item_item_codeowners_request_builder.go index 74ce05a5..e9a545c2 100644 --- a/pkg/github/repos/item_item_codeowners_request_builder.go +++ b/pkg/github/repos/item_item_codeowners_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCodeownersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codeowners +// ItemItemCodeownersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codeowners type ItemItemCodeownersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodeownersRequestBuilderInternal instantiates a new ItemItemCodeownersRequestBuilder and sets the default values. func NewItemItemCodeownersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodeownersRequestBuilder) { m := &ItemItemCodeownersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codeowners", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codeowners", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_devcontainers_request_builder.go b/pkg/github/repos/item_item_codespaces_devcontainers_request_builder.go index 785b1ba3..f10c3a5f 100644 --- a/pkg/github/repos/item_item_codespaces_devcontainers_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_devcontainers_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesDevcontainersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\devcontainers +// ItemItemCodespacesDevcontainersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\devcontainers type ItemItemCodespacesDevcontainersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCodespacesDevcontainersRequestBuilderGetQueryParameters struct { // NewItemItemCodespacesDevcontainersRequestBuilderInternal instantiates a new ItemItemCodespacesDevcontainersRequestBuilder and sets the default values. func NewItemItemCodespacesDevcontainersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesDevcontainersRequestBuilder) { m := &ItemItemCodespacesDevcontainersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/devcontainers{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/devcontainers{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_machines_request_builder.go b/pkg/github/repos/item_item_codespaces_machines_request_builder.go index 29a2006c..5b9141b0 100644 --- a/pkg/github/repos/item_item_codespaces_machines_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_machines_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesMachinesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\machines +// ItemItemCodespacesMachinesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\machines type ItemItemCodespacesMachinesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ type ItemItemCodespacesMachinesRequestBuilderGetQueryParameters struct { // NewItemItemCodespacesMachinesRequestBuilderInternal instantiates a new ItemItemCodespacesMachinesRequestBuilder and sets the default values. func NewItemItemCodespacesMachinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesMachinesRequestBuilder) { m := &ItemItemCodespacesMachinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/machines{?client_ip*,location*,ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/machines{?client_ip*,location*,ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_new_request_builder.go b/pkg/github/repos/item_item_codespaces_new_request_builder.go index 942aa942..20537171 100644 --- a/pkg/github/repos/item_item_codespaces_new_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_new_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesNewRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\new +// ItemItemCodespacesNewRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\new type ItemItemCodespacesNewRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCodespacesNewRequestBuilderGetQueryParameters struct { // NewItemItemCodespacesNewRequestBuilderInternal instantiates a new ItemItemCodespacesNewRequestBuilder and sets the default values. func NewItemItemCodespacesNewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesNewRequestBuilder) { m := &ItemItemCodespacesNewRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/new{?client_ip*,ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/new{?client_ip*,ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_permissions_check_request_builder.go b/pkg/github/repos/item_item_codespaces_permissions_check_request_builder.go index 2a706b71..44471124 100644 --- a/pkg/github/repos/item_item_codespaces_permissions_check_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_permissions_check_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesPermissions_checkRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\permissions_check +// ItemItemCodespacesPermissions_checkRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\permissions_check type ItemItemCodespacesPermissions_checkRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCodespacesPermissions_checkRequestBuilderGetQueryParameters struct // NewItemItemCodespacesPermissions_checkRequestBuilderInternal instantiates a new ItemItemCodespacesPermissions_checkRequestBuilder and sets the default values. func NewItemItemCodespacesPermissions_checkRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesPermissions_checkRequestBuilder) { m := &ItemItemCodespacesPermissions_checkRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/permissions_check?devcontainer_path={devcontainer_path}&ref={ref}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/permissions_check?devcontainer_path={devcontainer_path}&ref={ref}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_request_builder.go b/pkg/github/repos/item_item_codespaces_request_builder.go index d153527b..981cbcad 100644 --- a/pkg/github/repos/item_item_codespaces_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces +// ItemItemCodespacesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces type ItemItemCodespacesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCodespacesRequestBuilderGetQueryParameters struct { // NewItemItemCodespacesRequestBuilderInternal instantiates a new ItemItemCodespacesRequestBuilder and sets the default values. func NewItemItemCodespacesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesRequestBuilder) { m := &ItemItemCodespacesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces{?page*,per_page*}", pathParameters), } return m } @@ -126,7 +126,7 @@ func (m *ItemItemCodespacesRequestBuilder) ToGetRequestInformation(ctx context.C // ToPostRequestInformation creates a codespace owned by the authenticated user in the specified repository.OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemCodespacesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemCodespacesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_codespaces_secrets_public_key_request_builder.go b/pkg/github/repos/item_item_codespaces_secrets_public_key_request_builder.go index 6f690ee2..a56792d4 100644 --- a/pkg/github/repos/item_item_codespaces_secrets_public_key_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_secrets_public_key_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\secrets\public-key +// ItemItemCodespacesSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\secrets\public-key type ItemItemCodespacesSecretsPublicKeyRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodespacesSecretsPublicKeyRequestBuilderInternal instantiates a new ItemItemCodespacesSecretsPublicKeyRequestBuilder and sets the default values. func NewItemItemCodespacesSecretsPublicKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesSecretsPublicKeyRequestBuilder) { m := &ItemItemCodespacesSecretsPublicKeyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/secrets/public-key", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/secrets/public-key", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_secrets_request_builder.go b/pkg/github/repos/item_item_codespaces_secrets_request_builder.go index fc63f305..2494eb88 100644 --- a/pkg/github/repos/item_item_codespaces_secrets_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_secrets_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCodespacesSecretsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\secrets +// ItemItemCodespacesSecretsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\secrets type ItemItemCodespacesSecretsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemCodespacesSecretsRequestBuilder) BySecret_name(secret_name stri // NewItemItemCodespacesSecretsRequestBuilderInternal instantiates a new ItemItemCodespacesSecretsRequestBuilder and sets the default values. func NewItemItemCodespacesSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesSecretsRequestBuilder) { m := &ItemItemCodespacesSecretsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/secrets{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/secrets{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_codespaces_secrets_with_secret_name_item_request_builder.go b/pkg/github/repos/item_item_codespaces_secrets_with_secret_name_item_request_builder.go index a1c1ed30..9ef718eb 100644 --- a/pkg/github/repos/item_item_codespaces_secrets_with_secret_name_item_request_builder.go +++ b/pkg/github/repos/item_item_codespaces_secrets_with_secret_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\codespaces\secrets\{secret_name} +// ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\codespaces\secrets\{secret_name} type ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCodespacesSecretsWithSecret_nameItemRequestBuilderInternal instantiates a new ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder and sets the default values. func NewItemItemCodespacesSecretsWithSecret_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder) { m := &ItemItemCodespacesSecretsWithSecret_nameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/codespaces/secrets/{secret_name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/codespaces/secrets/{secret_name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_collaborators_item_permission_request_builder.go b/pkg/github/repos/item_item_collaborators_item_permission_request_builder.go index d41b7cc1..cd37d1f0 100644 --- a/pkg/github/repos/item_item_collaborators_item_permission_request_builder.go +++ b/pkg/github/repos/item_item_collaborators_item_permission_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCollaboratorsItemPermissionRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\collaborators\{username}\permission +// ItemItemCollaboratorsItemPermissionRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\collaborators\{username}\permission type ItemItemCollaboratorsItemPermissionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCollaboratorsItemPermissionRequestBuilderInternal instantiates a new ItemItemCollaboratorsItemPermissionRequestBuilder and sets the default values. func NewItemItemCollaboratorsItemPermissionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCollaboratorsItemPermissionRequestBuilder) { m := &ItemItemCollaboratorsItemPermissionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/collaborators/{username}/permission", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/collaborators/{username}/permission", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_collaborators_request_builder.go b/pkg/github/repos/item_item_collaborators_request_builder.go index 7b259fbe..cfee85bb 100644 --- a/pkg/github/repos/item_item_collaborators_request_builder.go +++ b/pkg/github/repos/item_item_collaborators_request_builder.go @@ -7,7 +7,7 @@ import ( ief3bd7d40cba4706c2c0a30c6789d312e44d4a4ae592e9c24c47ec933ab6cd48 "github.com/octokit/go-sdk/pkg/github/repos/item/item/collaborators" ) -// ItemItemCollaboratorsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\collaborators +// ItemItemCollaboratorsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\collaborators type ItemItemCollaboratorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -37,7 +37,7 @@ func (m *ItemItemCollaboratorsRequestBuilder) ByUsername(username string)(*ItemI // NewItemItemCollaboratorsRequestBuilderInternal instantiates a new ItemItemCollaboratorsRequestBuilder and sets the default values. func NewItemItemCollaboratorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCollaboratorsRequestBuilder) { m := &ItemItemCollaboratorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/collaborators{?affiliation*,page*,per_page*,permission*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/collaborators{?affiliation*,page*,per_page*,permission*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_collaborators_with_username_item_request_builder.go b/pkg/github/repos/item_item_collaborators_with_username_item_request_builder.go index 0ad354a5..d0c261c9 100644 --- a/pkg/github/repos/item_item_collaborators_with_username_item_request_builder.go +++ b/pkg/github/repos/item_item_collaborators_with_username_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCollaboratorsWithUsernameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\collaborators\{username} +// ItemItemCollaboratorsWithUsernameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\collaborators\{username} type ItemItemCollaboratorsWithUsernameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCollaboratorsWithUsernameItemRequestBuilderInternal instantiates a new ItemItemCollaboratorsWithUsernameItemRequestBuilder and sets the default values. func NewItemItemCollaboratorsWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCollaboratorsWithUsernameItemRequestBuilder) { m := &ItemItemCollaboratorsWithUsernameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/collaborators/{username}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/collaborators/{username}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_comments_item_reactions_request_builder.go b/pkg/github/repos/item_item_comments_item_reactions_request_builder.go index cccea406..5de021f1 100644 --- a/pkg/github/repos/item_item_comments_item_reactions_request_builder.go +++ b/pkg/github/repos/item_item_comments_item_reactions_request_builder.go @@ -8,7 +8,7 @@ import ( ie55802deee9fe37434e0511ab82c6a68c6bd8afe7d7998398c82c7391430d662 "github.com/octokit/go-sdk/pkg/github/repos/item/item/comments/item/reactions" ) -// ItemItemCommentsItemReactionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\comments\{comment_id}\reactions +// ItemItemCommentsItemReactionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments\{comment_id}\reactions type ItemItemCommentsItemReactionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -34,7 +34,7 @@ func (m *ItemItemCommentsItemReactionsRequestBuilder) ByReaction_id(reaction_id // NewItemItemCommentsItemReactionsRequestBuilderInternal instantiates a new ItemItemCommentsItemReactionsRequestBuilder and sets the default values. func NewItemItemCommentsItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommentsItemReactionsRequestBuilder) { m := &ItemItemCommentsItemReactionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/comments/{comment_id}/reactions{?content*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/comments/{comment_id}/reactions{?content*,page*,per_page*}", pathParameters), } return m } @@ -104,7 +104,7 @@ func (m *ItemItemCommentsItemReactionsRequestBuilder) ToGetRequestInformation(ct // ToPostRequestInformation create a reaction to a [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment). A response with an HTTP `200` status means that you already added the reaction type to this commit comment. // returns a *RequestInformation when successful func (m *ItemItemCommentsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemCommentsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/comments/{comment_id}/reactions", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/comments/{comment_id}/reactions", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_comments_item_reactions_with_reaction_item_request_builder.go b/pkg/github/repos/item_item_comments_item_reactions_with_reaction_item_request_builder.go index 0186df57..4e5cb197 100644 --- a/pkg/github/repos/item_item_comments_item_reactions_with_reaction_item_request_builder.go +++ b/pkg/github/repos/item_item_comments_item_reactions_with_reaction_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCommentsItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\comments\{comment_id}\reactions\{reaction_id} +// ItemItemCommentsItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments\{comment_id}\reactions\{reaction_id} type ItemItemCommentsItemReactionsWithReaction_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCommentsItemReactionsWithReaction_ItemRequestBuilderInternal instantiates a new ItemItemCommentsItemReactionsWithReaction_ItemRequestBuilder and sets the default values. func NewItemItemCommentsItemReactionsWithReaction_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommentsItemReactionsWithReaction_ItemRequestBuilder) { m := &ItemItemCommentsItemReactionsWithReaction_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/comments/{comment_id}/reactions/{reaction_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/comments/{comment_id}/reactions/{reaction_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_comments_request_builder.go b/pkg/github/repos/item_item_comments_request_builder.go index 552382e7..27810994 100644 --- a/pkg/github/repos/item_item_comments_request_builder.go +++ b/pkg/github/repos/item_item_comments_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\comments +// ItemItemCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments type ItemItemCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemCommentsRequestBuilder) ByComment_id(comment_id int32)(*ItemIte // NewItemItemCommentsRequestBuilderInternal instantiates a new ItemItemCommentsRequestBuilder and sets the default values. func NewItemItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommentsRequestBuilder) { m := &ItemItemCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/comments{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/comments{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_comments_with_comment_item_request_builder.go b/pkg/github/repos/item_item_comments_with_comment_item_request_builder.go index bbb93ceb..b7570647 100644 --- a/pkg/github/repos/item_item_comments_with_comment_item_request_builder.go +++ b/pkg/github/repos/item_item_comments_with_comment_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\comments\{comment_id} +// ItemItemCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\comments\{comment_id} type ItemItemCommentsWithComment_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCommentsWithComment_ItemRequestBuilderInternal instantiates a new ItemItemCommentsWithComment_ItemRequestBuilder and sets the default values. func NewItemItemCommentsWithComment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommentsWithComment_ItemRequestBuilder) { m := &ItemItemCommentsWithComment_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/comments/{comment_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/comments/{comment_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_commit_sha_item_request_builder.go b/pkg/github/repos/item_item_commits_commit_sha_item_request_builder.go new file mode 100644 index 00000000..81b98a13 --- /dev/null +++ b/pkg/github/repos/item_item_commits_commit_sha_item_request_builder.go @@ -0,0 +1,109 @@ +package repos + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" +) + +// ItemItemCommitsCommit_shaItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id} +type ItemItemCommitsCommit_shaItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemCommitsCommit_shaItemRequestBuilderGetQueryParameters returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | +type ItemItemCommitsCommit_shaItemRequestBuilderGetQueryParameters struct { + // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + Page *int32 `uriparametername:"page"` + // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + Per_page *int32 `uriparametername:"per_page"` +} +// BranchesWhereHead the branchesWhereHead property +// returns a *ItemItemCommitsItemBranchesWhereHeadRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) BranchesWhereHead()(*ItemItemCommitsItemBranchesWhereHeadRequestBuilder) { + return NewItemItemCommitsItemBranchesWhereHeadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// CheckRuns the checkRuns property +// returns a *ItemItemCommitsItemCheckRunsRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) CheckRuns()(*ItemItemCommitsItemCheckRunsRequestBuilder) { + return NewItemItemCommitsItemCheckRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// CheckSuites the checkSuites property +// returns a *ItemItemCommitsItemCheckSuitesRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) CheckSuites()(*ItemItemCommitsItemCheckSuitesRequestBuilder) { + return NewItemItemCommitsItemCheckSuitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Comments the comments property +// returns a *ItemItemCommitsItemCommentsRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) Comments()(*ItemItemCommitsItemCommentsRequestBuilder) { + return NewItemItemCommitsItemCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemItemCommitsCommit_shaItemRequestBuilderInternal instantiates a new ItemItemCommitsCommit_shaItemRequestBuilder and sets the default values. +func NewItemItemCommitsCommit_shaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsCommit_shaItemRequestBuilder) { + m := &ItemItemCommitsCommit_shaItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}{?page*,per_page*}", pathParameters), + } + return m +} +// NewItemItemCommitsCommit_shaItemRequestBuilder instantiates a new ItemItemCommitsCommit_shaItemRequestBuilder and sets the default values. +func NewItemItemCommitsCommit_shaItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsCommit_shaItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemCommitsCommit_shaItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | +// returns a Commitable when successful +// returns a BasicError error when the service returns a 404 status code +// returns a ValidationError error when the service returns a 422 status code +// returns a BasicError error when the service returns a 500 status code +// returns a Commit503Error error when the service returns a 503 status code +// [API method documentation] +// +// [API method documentation]: https://docs.github.com/rest/commits/commits#get-a-commit +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemCommitsCommit_shaItemRequestBuilderGetQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Commitable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, + "500": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + "503": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCommit503ErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateCommitFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Commitable), nil +} +// Pulls the pulls property +// returns a *ItemItemCommitsItemPullsRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) Pulls()(*ItemItemCommitsItemPullsRequestBuilder) { + return NewItemItemCommitsItemPullsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Status the status property +// returns a *ItemItemCommitsItemStatusRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) Status()(*ItemItemCommitsItemStatusRequestBuilder) { + return NewItemItemCommitsItemStatusRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Statuses the statuses property +// returns a *ItemItemCommitsItemStatusesRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) Statuses()(*ItemItemCommitsItemStatusesRequestBuilder) { + return NewItemItemCommitsItemStatusesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.**Note:** If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | +// returns a *RequestInformation when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemCommitsCommit_shaItemRequestBuilderGetQueryParameters])(*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 *ItemItemCommitsCommit_shaItemRequestBuilder when successful +func (m *ItemItemCommitsCommit_shaItemRequestBuilder) WithUrl(rawUrl string)(*ItemItemCommitsCommit_shaItemRequestBuilder) { + return NewItemItemCommitsCommit_shaItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/pkg/github/repos/item_item_commits_item_branches_where_head_request_builder.go b/pkg/github/repos/item_item_commits_item_branches_where_head_request_builder.go index 1a91b0a3..7266927f 100644 --- a/pkg/github/repos/item_item_commits_item_branches_where_head_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_branches_where_head_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommitsItemBranchesWhereHeadRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\branches-where-head +// ItemItemCommitsItemBranchesWhereHeadRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\branches-where-head type ItemItemCommitsItemBranchesWhereHeadRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCommitsItemBranchesWhereHeadRequestBuilderInternal instantiates a new ItemItemCommitsItemBranchesWhereHeadRequestBuilder and sets the default values. func NewItemItemCommitsItemBranchesWhereHeadRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemBranchesWhereHeadRequestBuilder) { m := &ItemItemCommitsItemBranchesWhereHeadRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/branches-where-head", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/branches-where-head", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go b/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go index 43eb4630..d6bc4670 100644 --- a/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go @@ -6,7 +6,7 @@ import ( ifb385791f8cac3dd5aa968a1ebb84b55fed8efbc21a8f661021ab21ba709ef32 "github.com/octokit/go-sdk/pkg/github/repos/item/item/commits/item/checkruns" ) -// ItemItemCommitsItemCheckRunsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\check-runs +// ItemItemCommitsItemCheckRunsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\check-runs type ItemItemCommitsItemCheckRunsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -27,7 +27,7 @@ type ItemItemCommitsItemCheckRunsRequestBuilderGetQueryParameters struct { // NewItemItemCommitsItemCheckRunsRequestBuilderInternal instantiates a new ItemItemCommitsItemCheckRunsRequestBuilder and sets the default values. func NewItemItemCommitsItemCheckRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemCheckRunsRequestBuilder) { m := &ItemItemCommitsItemCheckRunsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/check-runs{?app_id*,check_name*,filter*,page*,per_page*,status*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/check-runs{?app_id*,check_name*,filter*,page*,per_page*,status*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go b/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go index 4a7566d9..f30eee3e 100644 --- a/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCommitsItemCheckSuitesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\check-suites +// ItemItemCommitsItemCheckSuitesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\check-suites type ItemItemCommitsItemCheckSuitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ type ItemItemCommitsItemCheckSuitesRequestBuilderGetQueryParameters struct { // NewItemItemCommitsItemCheckSuitesRequestBuilderInternal instantiates a new ItemItemCommitsItemCheckSuitesRequestBuilder and sets the default values. func NewItemItemCommitsItemCheckSuitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemCheckSuitesRequestBuilder) { m := &ItemItemCommitsItemCheckSuitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/check-suites{?app_id*,check_name*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/check-suites{?app_id*,check_name*,page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_item_comments_request_builder.go b/pkg/github/repos/item_item_commits_item_comments_request_builder.go index e118eb99..62f8a842 100644 --- a/pkg/github/repos/item_item_commits_item_comments_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_comments_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommitsItemCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\comments +// ItemItemCommitsItemCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\comments type ItemItemCommitsItemCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCommitsItemCommentsRequestBuilderGetQueryParameters struct { // NewItemItemCommitsItemCommentsRequestBuilderInternal instantiates a new ItemItemCommitsItemCommentsRequestBuilder and sets the default values. func NewItemItemCommitsItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemCommentsRequestBuilder) { m := &ItemItemCommitsItemCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/comments{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/comments{?page*,per_page*}", pathParameters), } return m } @@ -88,7 +88,7 @@ func (m *ItemItemCommitsItemCommentsRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation create a comment for a commit using its `:commit_sha`.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. // returns a *RequestInformation when successful func (m *ItemItemCommitsItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemCommitsItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/comments", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/comments", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_commits_item_pulls_request_builder.go b/pkg/github/repos/item_item_commits_item_pulls_request_builder.go index 947c8537..180af75b 100644 --- a/pkg/github/repos/item_item_commits_item_pulls_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_pulls_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommitsItemPullsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\pulls +// ItemItemCommitsItemPullsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\pulls type ItemItemCommitsItemPullsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCommitsItemPullsRequestBuilderGetQueryParameters struct { // NewItemItemCommitsItemPullsRequestBuilderInternal instantiates a new ItemItemCommitsItemPullsRequestBuilder and sets the default values. func NewItemItemCommitsItemPullsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemPullsRequestBuilder) { m := &ItemItemCommitsItemPullsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/pulls{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/pulls{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_item_status_request_builder.go b/pkg/github/repos/item_item_commits_item_status_request_builder.go index faa97767..8a7dd094 100644 --- a/pkg/github/repos/item_item_commits_item_status_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_status_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommitsItemStatusRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\status +// ItemItemCommitsItemStatusRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\status type ItemItemCommitsItemStatusRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCommitsItemStatusRequestBuilderGetQueryParameters struct { // NewItemItemCommitsItemStatusRequestBuilderInternal instantiates a new ItemItemCommitsItemStatusRequestBuilder and sets the default values. func NewItemItemCommitsItemStatusRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemStatusRequestBuilder) { m := &ItemItemCommitsItemStatusRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/status{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/status{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_item_statuses_request_builder.go b/pkg/github/repos/item_item_commits_item_statuses_request_builder.go index 919915a9..7eb68496 100644 --- a/pkg/github/repos/item_item_commits_item_statuses_request_builder.go +++ b/pkg/github/repos/item_item_commits_item_statuses_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommitsItemStatusesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits\{commits-id}\statuses +// ItemItemCommitsItemStatusesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits\{commit_sha-id}\statuses type ItemItemCommitsItemStatusesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCommitsItemStatusesRequestBuilderGetQueryParameters struct { // NewItemItemCommitsItemStatusesRequestBuilderInternal instantiates a new ItemItemCommitsItemStatusesRequestBuilder and sets the default values. func NewItemItemCommitsItemStatusesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsItemStatusesRequestBuilder) { m := &ItemItemCommitsItemStatusesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits/{commits%2Did}/statuses{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits/{commit_sha%2Did}/statuses{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_commits_request_builder.go b/pkg/github/repos/item_item_commits_request_builder.go index 2ce77240..17b50640 100644 --- a/pkg/github/repos/item_item_commits_request_builder.go +++ b/pkg/github/repos/item_item_commits_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommitsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\commits +// ItemItemCommitsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\commits type ItemItemCommitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -30,22 +30,22 @@ type ItemItemCommitsRequestBuilderGetQueryParameters struct { // Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Until *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"until"` } -// ByCommitsId gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item.item.commits.item collection -// returns a *ItemItemCommitsCommitsItemRequestBuilder when successful -func (m *ItemItemCommitsRequestBuilder) ByCommitsId(commitsId string)(*ItemItemCommitsCommitsItemRequestBuilder) { +// ByCommit_shaId gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item.item.commits.item collection +// returns a *ItemItemCommitsCommit_shaItemRequestBuilder when successful +func (m *ItemItemCommitsRequestBuilder) ByCommit_shaId(commit_shaId string)(*ItemItemCommitsCommit_shaItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { urlTplParams[idx] = item } - if commitsId != "" { - urlTplParams["commits%2Did"] = commitsId + if commit_shaId != "" { + urlTplParams["commit_sha%2Did"] = commit_shaId } - return NewItemItemCommitsCommitsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) + return NewItemItemCommitsCommit_shaItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } // NewItemItemCommitsRequestBuilderInternal instantiates a new ItemItemCommitsRequestBuilder and sets the default values. func NewItemItemCommitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommitsRequestBuilder) { m := &ItemItemCommitsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/commits{?author*,committer*,page*,path*,per_page*,sha*,since*,until*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/commits{?author*,committer*,page*,path*,per_page*,sha*,since*,until*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_community_profile_request_builder.go b/pkg/github/repos/item_item_community_profile_request_builder.go index 0fdf988b..58317f6e 100644 --- a/pkg/github/repos/item_item_community_profile_request_builder.go +++ b/pkg/github/repos/item_item_community_profile_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCommunityProfileRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\community\profile +// ItemItemCommunityProfileRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\community\profile type ItemItemCommunityProfileRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCommunityProfileRequestBuilderInternal instantiates a new ItemItemCommunityProfileRequestBuilder and sets the default values. func NewItemItemCommunityProfileRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommunityProfileRequestBuilder) { m := &ItemItemCommunityProfileRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/community/profile", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/community/profile", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_community_request_builder.go b/pkg/github/repos/item_item_community_request_builder.go index 96b297b8..abd39254 100644 --- a/pkg/github/repos/item_item_community_request_builder.go +++ b/pkg/github/repos/item_item_community_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCommunityRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\community +// ItemItemCommunityRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\community type ItemItemCommunityRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemCommunityRequestBuilderInternal instantiates a new ItemItemCommunityRequestBuilder and sets the default values. func NewItemItemCommunityRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCommunityRequestBuilder) { m := &ItemItemCommunityRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/community", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/community", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_compare_request_builder.go b/pkg/github/repos/item_item_compare_request_builder.go index d147e161..64dede5e 100644 --- a/pkg/github/repos/item_item_compare_request_builder.go +++ b/pkg/github/repos/item_item_compare_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemCompareRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\compare +// ItemItemCompareRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\compare type ItemItemCompareRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemCompareRequestBuilder) ByBasehead(basehead string)(*ItemItemCom // NewItemItemCompareRequestBuilderInternal instantiates a new ItemItemCompareRequestBuilder and sets the default values. func NewItemItemCompareRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCompareRequestBuilder) { m := &ItemItemCompareRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/compare", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/compare", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_compare_with_basehead_item_request_builder.go b/pkg/github/repos/item_item_compare_with_basehead_item_request_builder.go index 3b6ccaeb..2ecdcba4 100644 --- a/pkg/github/repos/item_item_compare_with_basehead_item_request_builder.go +++ b/pkg/github/repos/item_item_compare_with_basehead_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemCompareWithBaseheadItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\compare\{basehead} +// ItemItemCompareWithBaseheadItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\compare\{basehead} type ItemItemCompareWithBaseheadItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemCompareWithBaseheadItemRequestBuilderGetQueryParameters struct { // NewItemItemCompareWithBaseheadItemRequestBuilderInternal instantiates a new ItemItemCompareWithBaseheadItemRequestBuilder and sets the default values. func NewItemItemCompareWithBaseheadItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemCompareWithBaseheadItemRequestBuilder) { m := &ItemItemCompareWithBaseheadItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/compare/{basehead}{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/compare/{basehead}{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_contents_request_builder.go b/pkg/github/repos/item_item_contents_request_builder.go index 672f0e59..860e75d8 100644 --- a/pkg/github/repos/item_item_contents_request_builder.go +++ b/pkg/github/repos/item_item_contents_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemContentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\contents +// ItemItemContentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\contents type ItemItemContentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemContentsRequestBuilder) ByPath(path string)(*ItemItemContentsWi // NewItemItemContentsRequestBuilderInternal instantiates a new ItemItemContentsRequestBuilder and sets the default values. func NewItemItemContentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemContentsRequestBuilder) { m := &ItemItemContentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/contents", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/contents", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_contents_with_path_item_request_builder.go b/pkg/github/repos/item_item_contents_with_path_item_request_builder.go index 6eaf2403..f3d7d8c7 100644 --- a/pkg/github/repos/item_item_contents_with_path_item_request_builder.go +++ b/pkg/github/repos/item_item_contents_with_path_item_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemContentsWithPathItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\contents\{path} +// ItemItemContentsWithPathItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\contents\{path} type ItemItemContentsWithPathItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -156,7 +156,7 @@ type WithPathGetResponseable interface { // NewItemItemContentsWithPathItemRequestBuilderInternal instantiates a new ItemItemContentsWithPathItemRequestBuilder and sets the default values. func NewItemItemContentsWithPathItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemContentsWithPathItemRequestBuilder) { m := &ItemItemContentsWithPathItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/contents/{path}{?ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/contents/{path}{?ref*}", pathParameters), } return m } @@ -250,7 +250,7 @@ func (m *ItemItemContentsWithPathItemRequestBuilder) Put(ctx context.Context, bo // ToDeleteRequestInformation deletes a file in a repository.You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.**Note:** If you use this endpoint and the "[Create or update file contents](https://docs.github.com/rest/repos/contents/#create-or-update-file-contents)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead. // returns a *RequestInformation when successful func (m *ItemItemContentsWithPathItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, body ItemItemContentsItemWithPathDeleteRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/contents/{path}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/contents/{path}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) @@ -270,7 +270,7 @@ func (m *ItemItemContentsWithPathItemRequestBuilder) ToGetRequestInformation(ctx // ToPutRequestInformation creates a new file or replaces an existing file in a repository.**Note:** If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/repos/contents/#delete-a-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The `workflow` scope is also required in order to modify files in the `.github/workflows` directory. // returns a *RequestInformation when successful func (m *ItemItemContentsWithPathItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemItemContentsItemWithPathPutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/contents/{path}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/contents/{path}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_contributors_request_builder.go b/pkg/github/repos/item_item_contributors_request_builder.go index 666b2cd8..3ef352dc 100644 --- a/pkg/github/repos/item_item_contributors_request_builder.go +++ b/pkg/github/repos/item_item_contributors_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemContributorsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\contributors +// ItemItemContributorsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\contributors type ItemItemContributorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ type ItemItemContributorsRequestBuilderGetQueryParameters struct { // NewItemItemContributorsRequestBuilderInternal instantiates a new ItemItemContributorsRequestBuilder and sets the default values. func NewItemItemContributorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemContributorsRequestBuilder) { m := &ItemItemContributorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/contributors{?anon*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/contributors{?anon*,page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependabot_alerts_request_builder.go b/pkg/github/repos/item_item_dependabot_alerts_request_builder.go index c2495f6b..167e8c72 100644 --- a/pkg/github/repos/item_item_dependabot_alerts_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_alerts_request_builder.go @@ -8,7 +8,7 @@ import ( i4239b9a99f590fb557f6cee5c0b7a464cc1a12da753e0582e737b6a06899504e "github.com/octokit/go-sdk/pkg/github/repos/item/item/dependabot/alerts" ) -// ItemItemDependabotAlertsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependabot\alerts +// ItemItemDependabotAlertsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\alerts type ItemItemDependabotAlertsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -58,7 +58,7 @@ func (m *ItemItemDependabotAlertsRequestBuilder) ByAlert_number(alert_number int // NewItemItemDependabotAlertsRequestBuilderInternal instantiates a new ItemItemDependabotAlertsRequestBuilder and sets the default values. func NewItemItemDependabotAlertsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotAlertsRequestBuilder) { m := &ItemItemDependabotAlertsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependabot/alerts{?after*,before*,direction*,ecosystem*,first*,last*,manifest*,package*,page*,per_page*,scope*,severity*,sort*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/alerts{?after*,before*,direction*,ecosystem*,first*,last*,manifest*,package*,page*,per_page*,scope*,severity*,sort*,state*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependabot_alerts_with_alert_number_item_request_builder.go b/pkg/github/repos/item_item_dependabot_alerts_with_alert_number_item_request_builder.go index d8e36e42..917241c4 100644 --- a/pkg/github/repos/item_item_dependabot_alerts_with_alert_number_item_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_alerts_with_alert_number_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDependabotAlertsWithAlert_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependabot\alerts\{alert_number} +// ItemItemDependabotAlertsWithAlert_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\alerts\{alert_number} type ItemItemDependabotAlertsWithAlert_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDependabotAlertsWithAlert_numberItemRequestBuilderInternal instantiates a new ItemItemDependabotAlertsWithAlert_numberItemRequestBuilder and sets the default values. func NewItemItemDependabotAlertsWithAlert_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotAlertsWithAlert_numberItemRequestBuilder) { m := &ItemItemDependabotAlertsWithAlert_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependabot/alerts/{alert_number}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/alerts/{alert_number}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependabot_request_builder.go b/pkg/github/repos/item_item_dependabot_request_builder.go index 1a1dc7cf..ca39c117 100644 --- a/pkg/github/repos/item_item_dependabot_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemDependabotRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependabot +// ItemItemDependabotRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot type ItemItemDependabotRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -16,7 +16,7 @@ func (m *ItemItemDependabotRequestBuilder) Alerts()(*ItemItemDependabotAlertsReq // NewItemItemDependabotRequestBuilderInternal instantiates a new ItemItemDependabotRequestBuilder and sets the default values. func NewItemItemDependabotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotRequestBuilder) { m := &ItemItemDependabotRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependabot", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependabot_secrets_public_key_request_builder.go b/pkg/github/repos/item_item_dependabot_secrets_public_key_request_builder.go index 4d8f569d..892ba884 100644 --- a/pkg/github/repos/item_item_dependabot_secrets_public_key_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_secrets_public_key_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDependabotSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependabot\secrets\public-key +// ItemItemDependabotSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\secrets\public-key type ItemItemDependabotSecretsPublicKeyRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDependabotSecretsPublicKeyRequestBuilderInternal instantiates a new ItemItemDependabotSecretsPublicKeyRequestBuilder and sets the default values. func NewItemItemDependabotSecretsPublicKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotSecretsPublicKeyRequestBuilder) { m := &ItemItemDependabotSecretsPublicKeyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependabot/secrets/public-key", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/secrets/public-key", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependabot_secrets_request_builder.go b/pkg/github/repos/item_item_dependabot_secrets_request_builder.go index 07ff35cf..226b845e 100644 --- a/pkg/github/repos/item_item_dependabot_secrets_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_secrets_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemDependabotSecretsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependabot\secrets +// ItemItemDependabotSecretsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\secrets type ItemItemDependabotSecretsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemDependabotSecretsRequestBuilder) BySecret_name(secret_name stri // NewItemItemDependabotSecretsRequestBuilderInternal instantiates a new ItemItemDependabotSecretsRequestBuilder and sets the default values. func NewItemItemDependabotSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotSecretsRequestBuilder) { m := &ItemItemDependabotSecretsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependabot/secrets{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/secrets{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependabot_secrets_with_secret_name_item_request_builder.go b/pkg/github/repos/item_item_dependabot_secrets_with_secret_name_item_request_builder.go index 521cf2db..57625ff0 100644 --- a/pkg/github/repos/item_item_dependabot_secrets_with_secret_name_item_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_secrets_with_secret_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDependabotSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependabot\secrets\{secret_name} +// ItemItemDependabotSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependabot\secrets\{secret_name} type ItemItemDependabotSecretsWithSecret_nameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDependabotSecretsWithSecret_nameItemRequestBuilderInternal instantiates a new ItemItemDependabotSecretsWithSecret_nameItemRequestBuilder and sets the default values. func NewItemItemDependabotSecretsWithSecret_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotSecretsWithSecret_nameItemRequestBuilder) { m := &ItemItemDependabotSecretsWithSecret_nameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependabot/secrets/{secret_name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/secrets/{secret_name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependency_graph_compare_request_builder.go b/pkg/github/repos/item_item_dependency_graph_compare_request_builder.go index c13ea5c8..32573921 100644 --- a/pkg/github/repos/item_item_dependency_graph_compare_request_builder.go +++ b/pkg/github/repos/item_item_dependency_graph_compare_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemDependencyGraphCompareRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependency-graph\compare +// ItemItemDependencyGraphCompareRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\compare type ItemItemDependencyGraphCompareRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemDependencyGraphCompareRequestBuilder) ByBasehead(basehead strin // NewItemItemDependencyGraphCompareRequestBuilderInternal instantiates a new ItemItemDependencyGraphCompareRequestBuilder and sets the default values. func NewItemItemDependencyGraphCompareRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependencyGraphCompareRequestBuilder) { m := &ItemItemDependencyGraphCompareRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependency-graph/compare", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependency-graph/compare", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependency_graph_compare_with_basehead_item_request_builder.go b/pkg/github/repos/item_item_dependency_graph_compare_with_basehead_item_request_builder.go index 3da3e5d0..88c69244 100644 --- a/pkg/github/repos/item_item_dependency_graph_compare_with_basehead_item_request_builder.go +++ b/pkg/github/repos/item_item_dependency_graph_compare_with_basehead_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependency-graph\compare\{basehead} +// ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\compare\{basehead} type ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilderGetQueryParamet // NewItemItemDependencyGraphCompareWithBaseheadItemRequestBuilderInternal instantiates a new ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilder and sets the default values. func NewItemItemDependencyGraphCompareWithBaseheadItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilder) { m := &ItemItemDependencyGraphCompareWithBaseheadItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependency-graph/compare/{basehead}{?name*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependency-graph/compare/{basehead}{?name*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependency_graph_request_builder.go b/pkg/github/repos/item_item_dependency_graph_request_builder.go index e8e6a46b..3662dca3 100644 --- a/pkg/github/repos/item_item_dependency_graph_request_builder.go +++ b/pkg/github/repos/item_item_dependency_graph_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemDependencyGraphRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependency-graph +// ItemItemDependencyGraphRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph type ItemItemDependencyGraphRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -16,7 +16,7 @@ func (m *ItemItemDependencyGraphRequestBuilder) Compare()(*ItemItemDependencyGra // NewItemItemDependencyGraphRequestBuilderInternal instantiates a new ItemItemDependencyGraphRequestBuilder and sets the default values. func NewItemItemDependencyGraphRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependencyGraphRequestBuilder) { m := &ItemItemDependencyGraphRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependency-graph", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependency-graph", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependency_graph_sbom_request_builder.go b/pkg/github/repos/item_item_dependency_graph_sbom_request_builder.go index 10b112d1..35eda9c8 100644 --- a/pkg/github/repos/item_item_dependency_graph_sbom_request_builder.go +++ b/pkg/github/repos/item_item_dependency_graph_sbom_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDependencyGraphSbomRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependency-graph\sbom +// ItemItemDependencyGraphSbomRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\sbom type ItemItemDependencyGraphSbomRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDependencyGraphSbomRequestBuilderInternal instantiates a new ItemItemDependencyGraphSbomRequestBuilder and sets the default values. func NewItemItemDependencyGraphSbomRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependencyGraphSbomRequestBuilder) { m := &ItemItemDependencyGraphSbomRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependency-graph/sbom", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependency-graph/sbom", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dependency_graph_snapshots_request_builder.go b/pkg/github/repos/item_item_dependency_graph_snapshots_request_builder.go index 502110d1..12391ff7 100644 --- a/pkg/github/repos/item_item_dependency_graph_snapshots_request_builder.go +++ b/pkg/github/repos/item_item_dependency_graph_snapshots_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDependencyGraphSnapshotsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dependency-graph\snapshots +// ItemItemDependencyGraphSnapshotsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dependency-graph\snapshots type ItemItemDependencyGraphSnapshotsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDependencyGraphSnapshotsRequestBuilderInternal instantiates a new ItemItemDependencyGraphSnapshotsRequestBuilder and sets the default values. func NewItemItemDependencyGraphSnapshotsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependencyGraphSnapshotsRequestBuilder) { m := &ItemItemDependencyGraphSnapshotsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dependency-graph/snapshots", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependency-graph/snapshots", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_deployments_item_statuses_request_builder.go b/pkg/github/repos/item_item_deployments_item_statuses_request_builder.go index 374818bd..5ddae180 100644 --- a/pkg/github/repos/item_item_deployments_item_statuses_request_builder.go +++ b/pkg/github/repos/item_item_deployments_item_statuses_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDeploymentsItemStatusesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\deployments\{deployment_id}\statuses +// ItemItemDeploymentsItemStatusesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments\{deployment_id}\statuses type ItemItemDeploymentsItemStatusesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemDeploymentsItemStatusesRequestBuilder) ByStatus_id(status_id in // NewItemItemDeploymentsItemStatusesRequestBuilderInternal instantiates a new ItemItemDeploymentsItemStatusesRequestBuilder and sets the default values. func NewItemItemDeploymentsItemStatusesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDeploymentsItemStatusesRequestBuilder) { m := &ItemItemDeploymentsItemStatusesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/deployments/{deployment_id}/statuses{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/deployments/{deployment_id}/statuses{?page*,per_page*}", pathParameters), } return m } @@ -101,7 +101,7 @@ func (m *ItemItemDeploymentsItemStatusesRequestBuilder) ToGetRequestInformation( // ToPostRequestInformation users with `push` access can create deployment statuses for a given deployment.OAuth app tokens and personal access tokens (classic) need the `repo_deployment` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemDeploymentsItemStatusesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemDeploymentsItemStatusesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/deployments/{deployment_id}/statuses", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/deployments/{deployment_id}/statuses", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_deployments_item_statuses_with_status_item_request_builder.go b/pkg/github/repos/item_item_deployments_item_statuses_with_status_item_request_builder.go index 168b79ef..0c413d59 100644 --- a/pkg/github/repos/item_item_deployments_item_statuses_with_status_item_request_builder.go +++ b/pkg/github/repos/item_item_deployments_item_statuses_with_status_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\deployments\{deployment_id}\statuses\{status_id} +// ItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments\{deployment_id}\statuses\{status_id} type ItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilderInternal instantiates a new ItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilder and sets the default values. func NewItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilder) { m := &ItemItemDeploymentsItemStatusesWithStatus_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/deployments/{deployment_id}/statuses/{status_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/deployments/{deployment_id}/statuses/{status_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_deployments_request_builder.go b/pkg/github/repos/item_item_deployments_request_builder.go index 708ecaaa..db38d563 100644 --- a/pkg/github/repos/item_item_deployments_request_builder.go +++ b/pkg/github/repos/item_item_deployments_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDeploymentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\deployments +// ItemItemDeploymentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments type ItemItemDeploymentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -39,7 +39,7 @@ func (m *ItemItemDeploymentsRequestBuilder) ByDeployment_id(deployment_id int32) // NewItemItemDeploymentsRequestBuilderInternal instantiates a new ItemItemDeploymentsRequestBuilder and sets the default values. func NewItemItemDeploymentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDeploymentsRequestBuilder) { m := &ItemItemDeploymentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/deployments{?environment*,page*,per_page*,ref*,sha*,task*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/deployments{?environment*,page*,per_page*,ref*,sha*,task*}", pathParameters), } return m } @@ -105,7 +105,7 @@ func (m *ItemItemDeploymentsRequestBuilder) ToGetRequestInformation(ctx context. // ToPostRequestInformation deployments offer a few configurable parameters with certain defaults.The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify thembefore we merge a pull request.The `environment` parameter allows deployments to be issued to different runtime environments. Teams often havemultiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parametermakes it easier to track which environments have requested deployments. The default environment is `production`.The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. Ifthe ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds,the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API willreturn a failure response.By default, [commit statuses](https://docs.github.com/rest/commits/statuses) for every submitted context must be in a `success`state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or tospecify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you donot require any contexts or create any commit statuses, the deployment will always succeed.The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON textfield that will be passed on when a deployment event is dispatched.The `task` parameter is used by the deployment system to allow different execution paths. In the web world this mightbe `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile anapplication with debugging enabled.Merged branch response:You will see this response when GitHub automatically merges the base branch into the topic branch instead of creatinga deployment. This auto-merge happens when:* Auto-merge option is enabled in the repository* Topic branch does not include the latest changes on the base branch, which is `master` in the response example* There are no merge conflictsIf there are no new commits in the base branch, a new request to create a deployment should give a successfulresponse.Merge conflict response:This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can'tbe merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.Failed commit status checks:This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success`status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.OAuth app tokens and personal access tokens (classic) need the `repo` or `repo_deployment` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemDeploymentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemDeploymentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/deployments", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/deployments", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_deployments_with_deployment_item_request_builder.go b/pkg/github/repos/item_item_deployments_with_deployment_item_request_builder.go index 0dd90054..3bda0091 100644 --- a/pkg/github/repos/item_item_deployments_with_deployment_item_request_builder.go +++ b/pkg/github/repos/item_item_deployments_with_deployment_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDeploymentsWithDeployment_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\deployments\{deployment_id} +// ItemItemDeploymentsWithDeployment_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\deployments\{deployment_id} type ItemItemDeploymentsWithDeployment_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDeploymentsWithDeployment_ItemRequestBuilderInternal instantiates a new ItemItemDeploymentsWithDeployment_ItemRequestBuilder and sets the default values. func NewItemItemDeploymentsWithDeployment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDeploymentsWithDeployment_ItemRequestBuilder) { m := &ItemItemDeploymentsWithDeployment_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/deployments/{deployment_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/deployments/{deployment_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_dispatches_request_builder.go b/pkg/github/repos/item_item_dispatches_request_builder.go index 0f9e189c..ed64ce18 100644 --- a/pkg/github/repos/item_item_dispatches_request_builder.go +++ b/pkg/github/repos/item_item_dispatches_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemDispatchesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\dispatches +// ItemItemDispatchesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\dispatches type ItemItemDispatchesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemDispatchesRequestBuilderInternal instantiates a new ItemItemDispatchesRequestBuilder and sets the default values. func NewItemItemDispatchesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDispatchesRequestBuilder) { m := &ItemItemDispatchesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/dispatches", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dispatches", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_environments_item_deployment_branch_policies_request_builder.go b/pkg/github/repos/item_item_environments_item_deployment_branch_policies_request_builder.go index b03d22d4..54c91bc5 100644 --- a/pkg/github/repos/item_item_environments_item_deployment_branch_policies_request_builder.go +++ b/pkg/github/repos/item_item_environments_item_deployment_branch_policies_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments\{environment_name}\deployment-branch-policies +// ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment-branch-policies type ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder) ByBranc // NewItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilderInternal instantiates a new ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder and sets the default values. func NewItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder) { m := &ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}/deployment-branch-policies{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}/deployment-branch-policies{?page*,per_page*}", pathParameters), } return m } @@ -90,7 +90,7 @@ func (m *ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder) ToGetRe // ToPostRequestInformation creates a deployment branch or tag policy for an environment.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemEnvironmentsItemDeploymentBranchPoliciesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.DeploymentBranchPolicyNamePatternWithTypeable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}/deployment-branch-policies", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}/deployment-branch-policies", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_environments_item_deployment_branch_policies_with_branch_policy_item_request_builder.go b/pkg/github/repos/item_item_environments_item_deployment_branch_policies_with_branch_policy_item_request_builder.go index fef8157b..38dced8a 100644 --- a/pkg/github/repos/item_item_environments_item_deployment_branch_policies_with_branch_policy_item_request_builder.go +++ b/pkg/github/repos/item_item_environments_item_deployment_branch_policies_with_branch_policy_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments\{environment_name}\deployment-branch-policies\{branch_policy_id} +// ItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment-branch-policies\{branch_policy_id} type ItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilderInternal instantiates a new ItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilder and sets the default values. func NewItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilder) { m := &ItemItemEnvironmentsItemDeploymentBranchPoliciesWithBranch_policy_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go index d515dd52..84e9b282 100644 --- a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go +++ b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_apps_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments\{environment_name}\deployment_protection_rules\apps +// ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment_protection_rules\apps type ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -19,7 +19,7 @@ type ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderGetQue // NewItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderInternal instantiates a new ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder and sets the default values. func NewItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder) { m := &ItemItemEnvironmentsItemDeployment_protection_rulesAppsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}/deployment_protection_rules/apps{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}/deployment_protection_rules/apps{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_request_builder.go b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_request_builder.go index c3d19040..b0334397 100644 --- a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_request_builder.go +++ b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments\{environment_name}\deployment_protection_rules +// ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment_protection_rules type ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -29,7 +29,7 @@ func (m *ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder) ByPr // NewItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilderInternal instantiates a new ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder and sets the default values. func NewItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder) { m := &ItemItemEnvironmentsItemDeployment_protection_rulesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}/deployment_protection_rules", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}/deployment_protection_rules", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_with_protection_rule_item_request_builder.go b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_with_protection_rule_item_request_builder.go index e51831e0..924177c9 100644 --- a/pkg/github/repos/item_item_environments_item_deployment_protection_rules_with_protection_rule_item_request_builder.go +++ b/pkg/github/repos/item_item_environments_item_deployment_protection_rules_with_protection_rule_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments\{environment_name}\deployment_protection_rules\{protection_rule_id} +// ItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name}\deployment_protection_rules\{protection_rule_id} type ItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilderInternal instantiates a new ItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilder and sets the default values. func NewItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilder) { m := &ItemItemEnvironmentsItemDeployment_protection_rulesWithProtection_rule_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_environments_request_builder.go b/pkg/github/repos/item_item_environments_request_builder.go index b2a8dd4f..16426d14 100644 --- a/pkg/github/repos/item_item_environments_request_builder.go +++ b/pkg/github/repos/item_item_environments_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemEnvironmentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments +// ItemItemEnvironmentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments type ItemItemEnvironmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemEnvironmentsRequestBuilder) ByEnvironment_name(environment_name // NewItemItemEnvironmentsRequestBuilderInternal instantiates a new ItemItemEnvironmentsRequestBuilder and sets the default values. func NewItemItemEnvironmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsRequestBuilder) { m := &ItemItemEnvironmentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_environments_with_environment_name_item_request_builder.go b/pkg/github/repos/item_item_environments_with_environment_name_item_request_builder.go index c267e3a9..4e4d6fbd 100644 --- a/pkg/github/repos/item_item_environments_with_environment_name_item_request_builder.go +++ b/pkg/github/repos/item_item_environments_with_environment_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemEnvironmentsWithEnvironment_nameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\environments\{environment_name} +// ItemItemEnvironmentsWithEnvironment_nameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\environments\{environment_name} type ItemItemEnvironmentsWithEnvironment_nameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal instantiates a new ItemItemEnvironmentsWithEnvironment_nameItemRequestBuilder and sets the default values. func NewItemItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEnvironmentsWithEnvironment_nameItemRequestBuilder) { m := &ItemItemEnvironmentsWithEnvironment_nameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/environments/{environment_name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/environments/{environment_name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_events_request_builder.go b/pkg/github/repos/item_item_events_request_builder.go index 5ccfcb66..1f2afa31 100644 --- a/pkg/github/repos/item_item_events_request_builder.go +++ b/pkg/github/repos/item_item_events_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemEventsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\events +// ItemItemEventsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\events type ItemItemEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemEventsRequestBuilderGetQueryParameters struct { // NewItemItemEventsRequestBuilderInternal instantiates a new ItemItemEventsRequestBuilder and sets the default values. func NewItemItemEventsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemEventsRequestBuilder) { m := &ItemItemEventsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/events{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/events{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_forks_request_builder.go b/pkg/github/repos/item_item_forks_request_builder.go index be4a04f5..48b0f096 100644 --- a/pkg/github/repos/item_item_forks_request_builder.go +++ b/pkg/github/repos/item_item_forks_request_builder.go @@ -7,7 +7,7 @@ import ( ia8522d4fb15ab1318931fab69bc994cc5db2188067860f52c78d065e2adc8db4 "github.com/octokit/go-sdk/pkg/github/repos/item/item/forks" ) -// ItemItemForksRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\forks +// ItemItemForksRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\forks type ItemItemForksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ type ItemItemForksRequestBuilderGetQueryParameters struct { // NewItemItemForksRequestBuilderInternal instantiates a new ItemItemForksRequestBuilder and sets the default values. func NewItemItemForksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemForksRequestBuilder) { m := &ItemItemForksRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/forks{?page*,per_page*,sort*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/forks{?page*,per_page*,sort*}", pathParameters), } return m } @@ -98,7 +98,7 @@ func (m *ItemItemForksRequestBuilder) ToGetRequestInformation(ctx context.Contex // ToPostRequestInformation create a fork for the authenticated user.**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).**Note**: Although this endpoint works with GitHub Apps, the GitHub App must be installed on the destination account with access to all repositories and on the source account with access to the source repository. // returns a *RequestInformation when successful func (m *ItemItemForksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemForksPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/forks", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/forks", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_generate_request_builder.go b/pkg/github/repos/item_item_generate_request_builder.go index 3b7dfb14..339818d9 100644 --- a/pkg/github/repos/item_item_generate_request_builder.go +++ b/pkg/github/repos/item_item_generate_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGenerateRequestBuilder builds and executes requests for operations under \repos\{template_owner}\{Owner-id}\generate +// ItemItemGenerateRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\generate type ItemItemGenerateRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGenerateRequestBuilderInternal instantiates a new ItemItemGenerateRequestBuilder and sets the default values. func NewItemItemGenerateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGenerateRequestBuilder) { m := &ItemItemGenerateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{template_owner}/{Owner%2Did}/generate", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/generate", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_blobs_request_builder.go b/pkg/github/repos/item_item_git_blobs_request_builder.go index c031ce09..1bbd14f2 100644 --- a/pkg/github/repos/item_item_git_blobs_request_builder.go +++ b/pkg/github/repos/item_item_git_blobs_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitBlobsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\blobs +// ItemItemGitBlobsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\blobs type ItemItemGitBlobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemGitBlobsRequestBuilder) ByFile_sha(file_sha string)(*ItemItemGi // NewItemItemGitBlobsRequestBuilderInternal instantiates a new ItemItemGitBlobsRequestBuilder and sets the default values. func NewItemItemGitBlobsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitBlobsRequestBuilder) { m := &ItemItemGitBlobsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/blobs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/blobs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_blobs_with_file_sha_item_request_builder.go b/pkg/github/repos/item_item_git_blobs_with_file_sha_item_request_builder.go index fae6e5d8..132a16d0 100644 --- a/pkg/github/repos/item_item_git_blobs_with_file_sha_item_request_builder.go +++ b/pkg/github/repos/item_item_git_blobs_with_file_sha_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitBlobsWithFile_shaItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\blobs\{file_sha} +// ItemItemGitBlobsWithFile_shaItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\blobs\{file_sha} type ItemItemGitBlobsWithFile_shaItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGitBlobsWithFile_shaItemRequestBuilderInternal instantiates a new ItemItemGitBlobsWithFile_shaItemRequestBuilder and sets the default values. func NewItemItemGitBlobsWithFile_shaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitBlobsWithFile_shaItemRequestBuilder) { m := &ItemItemGitBlobsWithFile_shaItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/blobs/{file_sha}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/blobs/{file_sha}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_commits_request_builder.go b/pkg/github/repos/item_item_git_commits_request_builder.go index 170fe0de..8a743bb4 100644 --- a/pkg/github/repos/item_item_git_commits_request_builder.go +++ b/pkg/github/repos/item_item_git_commits_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitCommitsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\commits +// ItemItemGitCommitsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\commits type ItemItemGitCommitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemGitCommitsRequestBuilder) ByCommit_sha(commit_sha string)(*Item // NewItemItemGitCommitsRequestBuilderInternal instantiates a new ItemItemGitCommitsRequestBuilder and sets the default values. func NewItemItemGitCommitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitCommitsRequestBuilder) { m := &ItemItemGitCommitsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/commits", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/commits", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_commits_with_commit_sha_item_request_builder.go b/pkg/github/repos/item_item_git_commits_with_commit_sha_item_request_builder.go index 4f1e8d83..32deeaa6 100644 --- a/pkg/github/repos/item_item_git_commits_with_commit_sha_item_request_builder.go +++ b/pkg/github/repos/item_item_git_commits_with_commit_sha_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitCommitsWithCommit_shaItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\commits\{commit_sha} +// ItemItemGitCommitsWithCommit_shaItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\commits\{commit_sha} type ItemItemGitCommitsWithCommit_shaItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGitCommitsWithCommit_shaItemRequestBuilderInternal instantiates a new ItemItemGitCommitsWithCommit_shaItemRequestBuilder and sets the default values. func NewItemItemGitCommitsWithCommit_shaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitCommitsWithCommit_shaItemRequestBuilder) { m := &ItemItemGitCommitsWithCommit_shaItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/commits/{commit_sha}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/commits/{commit_sha}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_matching_refs_request_builder.go b/pkg/github/repos/item_item_git_matching_refs_request_builder.go index 377e8dbc..8f697f9a 100644 --- a/pkg/github/repos/item_item_git_matching_refs_request_builder.go +++ b/pkg/github/repos/item_item_git_matching_refs_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemGitMatchingRefsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\matching-refs +// ItemItemGitMatchingRefsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\matching-refs type ItemItemGitMatchingRefsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemGitMatchingRefsRequestBuilder) ByRef(ref string)(*ItemItemGitMa // NewItemItemGitMatchingRefsRequestBuilderInternal instantiates a new ItemItemGitMatchingRefsRequestBuilder and sets the default values. func NewItemItemGitMatchingRefsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitMatchingRefsRequestBuilder) { m := &ItemItemGitMatchingRefsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/matching-refs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/matching-refs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_matching_refs_with_ref_item_request_builder.go b/pkg/github/repos/item_item_git_matching_refs_with_ref_item_request_builder.go index e49e55af..6af82d97 100644 --- a/pkg/github/repos/item_item_git_matching_refs_with_ref_item_request_builder.go +++ b/pkg/github/repos/item_item_git_matching_refs_with_ref_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitMatchingRefsWithRefItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\matching-refs\{ref} +// ItemItemGitMatchingRefsWithRefItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\matching-refs\{ref} type ItemItemGitMatchingRefsWithRefItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGitMatchingRefsWithRefItemRequestBuilderInternal instantiates a new ItemItemGitMatchingRefsWithRefItemRequestBuilder and sets the default values. func NewItemItemGitMatchingRefsWithRefItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitMatchingRefsWithRefItemRequestBuilder) { m := &ItemItemGitMatchingRefsWithRefItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/matching-refs/{ref}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/matching-refs/{ref}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_ref_request_builder.go b/pkg/github/repos/item_item_git_ref_request_builder.go index 8272946c..571d5237 100644 --- a/pkg/github/repos/item_item_git_ref_request_builder.go +++ b/pkg/github/repos/item_item_git_ref_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemGitRefRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\ref +// ItemItemGitRefRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\ref type ItemItemGitRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemGitRefRequestBuilder) ByRef(ref string)(*ItemItemGitRefWithRefI // NewItemItemGitRefRequestBuilderInternal instantiates a new ItemItemGitRefRequestBuilder and sets the default values. func NewItemItemGitRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitRefRequestBuilder) { m := &ItemItemGitRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/ref", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/ref", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_ref_with_ref_item_request_builder.go b/pkg/github/repos/item_item_git_ref_with_ref_item_request_builder.go index 3bb6f4f6..731f0cc9 100644 --- a/pkg/github/repos/item_item_git_ref_with_ref_item_request_builder.go +++ b/pkg/github/repos/item_item_git_ref_with_ref_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitRefWithRefItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\ref\{ref} +// ItemItemGitRefWithRefItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\ref\{ref} type ItemItemGitRefWithRefItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGitRefWithRefItemRequestBuilderInternal instantiates a new ItemItemGitRefWithRefItemRequestBuilder and sets the default values. func NewItemItemGitRefWithRefItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitRefWithRefItemRequestBuilder) { m := &ItemItemGitRefWithRefItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/ref/{ref}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/ref/{ref}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_refs_request_builder.go b/pkg/github/repos/item_item_git_refs_request_builder.go index 5e2989ab..224eb484 100644 --- a/pkg/github/repos/item_item_git_refs_request_builder.go +++ b/pkg/github/repos/item_item_git_refs_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitRefsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\refs +// ItemItemGitRefsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\refs type ItemItemGitRefsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemGitRefsRequestBuilder) ByRef(ref string)(*ItemItemGitRefsWithRe // NewItemItemGitRefsRequestBuilderInternal instantiates a new ItemItemGitRefsRequestBuilder and sets the default values. func NewItemItemGitRefsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitRefsRequestBuilder) { m := &ItemItemGitRefsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/refs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/refs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_refs_with_ref_item_request_builder.go b/pkg/github/repos/item_item_git_refs_with_ref_item_request_builder.go index 12a69593..e0216325 100644 --- a/pkg/github/repos/item_item_git_refs_with_ref_item_request_builder.go +++ b/pkg/github/repos/item_item_git_refs_with_ref_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitRefsWithRefItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\refs\{ref} +// ItemItemGitRefsWithRefItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\refs\{ref} type ItemItemGitRefsWithRefItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGitRefsWithRefItemRequestBuilderInternal instantiates a new ItemItemGitRefsWithRefItemRequestBuilder and sets the default values. func NewItemItemGitRefsWithRefItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitRefsWithRefItemRequestBuilder) { m := &ItemItemGitRefsWithRefItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/refs/{ref}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/refs/{ref}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_request_builder.go b/pkg/github/repos/item_item_git_request_builder.go index 17bcb866..eb9451b6 100644 --- a/pkg/github/repos/item_item_git_request_builder.go +++ b/pkg/github/repos/item_item_git_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemGitRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git +// ItemItemGitRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git type ItemItemGitRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -21,7 +21,7 @@ func (m *ItemItemGitRequestBuilder) Commits()(*ItemItemGitCommitsRequestBuilder) // NewItemItemGitRequestBuilderInternal instantiates a new ItemItemGitRequestBuilder and sets the default values. func NewItemItemGitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitRequestBuilder) { m := &ItemItemGitRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_tags_request_builder.go b/pkg/github/repos/item_item_git_tags_request_builder.go index 9a4a7c10..b4ff7325 100644 --- a/pkg/github/repos/item_item_git_tags_request_builder.go +++ b/pkg/github/repos/item_item_git_tags_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitTagsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\tags +// ItemItemGitTagsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\tags type ItemItemGitTagsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemGitTagsRequestBuilder) ByTag_sha(tag_sha string)(*ItemItemGitTa // NewItemItemGitTagsRequestBuilderInternal instantiates a new ItemItemGitTagsRequestBuilder and sets the default values. func NewItemItemGitTagsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitTagsRequestBuilder) { m := &ItemItemGitTagsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/tags", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/tags", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_tags_with_tag_sha_item_request_builder.go b/pkg/github/repos/item_item_git_tags_with_tag_sha_item_request_builder.go index 52bdfe80..2943c95f 100644 --- a/pkg/github/repos/item_item_git_tags_with_tag_sha_item_request_builder.go +++ b/pkg/github/repos/item_item_git_tags_with_tag_sha_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitTagsWithTag_shaItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\tags\{tag_sha} +// ItemItemGitTagsWithTag_shaItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\tags\{tag_sha} type ItemItemGitTagsWithTag_shaItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemGitTagsWithTag_shaItemRequestBuilderInternal instantiates a new ItemItemGitTagsWithTag_shaItemRequestBuilder and sets the default values. func NewItemItemGitTagsWithTag_shaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitTagsWithTag_shaItemRequestBuilder) { m := &ItemItemGitTagsWithTag_shaItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/tags/{tag_sha}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/tags/{tag_sha}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_trees_request_builder.go b/pkg/github/repos/item_item_git_trees_request_builder.go index fbb9bc6c..5479657f 100644 --- a/pkg/github/repos/item_item_git_trees_request_builder.go +++ b/pkg/github/repos/item_item_git_trees_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitTreesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\trees +// ItemItemGitTreesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\trees type ItemItemGitTreesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemGitTreesRequestBuilder) ByTree_sha(tree_sha string)(*ItemItemGi // NewItemItemGitTreesRequestBuilderInternal instantiates a new ItemItemGitTreesRequestBuilder and sets the default values. func NewItemItemGitTreesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitTreesRequestBuilder) { m := &ItemItemGitTreesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/trees", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/trees", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_git_trees_with_tree_sha_item_request_builder.go b/pkg/github/repos/item_item_git_trees_with_tree_sha_item_request_builder.go index 5810d1c3..b1fadc06 100644 --- a/pkg/github/repos/item_item_git_trees_with_tree_sha_item_request_builder.go +++ b/pkg/github/repos/item_item_git_trees_with_tree_sha_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemGitTreesWithTree_shaItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\git\trees\{tree_sha} +// ItemItemGitTreesWithTree_shaItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\git\trees\{tree_sha} type ItemItemGitTreesWithTree_shaItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemGitTreesWithTree_shaItemRequestBuilderGetQueryParameters struct { // NewItemItemGitTreesWithTree_shaItemRequestBuilderInternal instantiates a new ItemItemGitTreesWithTree_shaItemRequestBuilder and sets the default values. func NewItemItemGitTreesWithTree_shaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemGitTreesWithTree_shaItemRequestBuilder) { m := &ItemItemGitTreesWithTree_shaItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/git/trees/{tree_sha}{?recursive*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/git/trees/{tree_sha}{?recursive*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_item_config_request_builder.go b/pkg/github/repos/item_item_hooks_item_config_request_builder.go index 82c30778..1fde5d33 100644 --- a/pkg/github/repos/item_item_hooks_item_config_request_builder.go +++ b/pkg/github/repos/item_item_hooks_item_config_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksItemConfigRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id}\config +// ItemItemHooksItemConfigRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\config type ItemItemHooksItemConfigRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemHooksItemConfigRequestBuilderInternal instantiates a new ItemItemHooksItemConfigRequestBuilder and sets the default values. func NewItemItemHooksItemConfigRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksItemConfigRequestBuilder) { m := &ItemItemHooksItemConfigRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}/config", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}/config", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_request_builder.go b/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_request_builder.go index b3860a23..1948ad1c 100644 --- a/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_request_builder.go +++ b/pkg/github/repos/item_item_hooks_item_deliveries_item_attempts_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksItemDeliveriesItemAttemptsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id}\deliveries\{delivery_id}\attempts +// ItemItemHooksItemDeliveriesItemAttemptsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\deliveries\{delivery_id}\attempts type ItemItemHooksItemDeliveriesItemAttemptsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemHooksItemDeliveriesItemAttemptsRequestBuilderInternal instantiates a new ItemItemHooksItemDeliveriesItemAttemptsRequestBuilder and sets the default values. func NewItemItemHooksItemDeliveriesItemAttemptsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksItemDeliveriesItemAttemptsRequestBuilder) { m := &ItemItemHooksItemDeliveriesItemAttemptsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}/deliveries/{delivery_id}/attempts", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}/deliveries/{delivery_id}/attempts", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_item_deliveries_request_builder.go b/pkg/github/repos/item_item_hooks_item_deliveries_request_builder.go index cb3f3ced..70d3aa45 100644 --- a/pkg/github/repos/item_item_hooks_item_deliveries_request_builder.go +++ b/pkg/github/repos/item_item_hooks_item_deliveries_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksItemDeliveriesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id}\deliveries +// ItemItemHooksItemDeliveriesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\deliveries type ItemItemHooksItemDeliveriesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -32,7 +32,7 @@ func (m *ItemItemHooksItemDeliveriesRequestBuilder) ByDelivery_id(delivery_id in // NewItemItemHooksItemDeliveriesRequestBuilderInternal instantiates a new ItemItemHooksItemDeliveriesRequestBuilder and sets the default values. func NewItemItemHooksItemDeliveriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksItemDeliveriesRequestBuilder) { m := &ItemItemHooksItemDeliveriesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}/deliveries{?cursor*,per_page*,redelivery*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}/deliveries{?cursor*,per_page*,redelivery*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_item_deliveries_with_delivery_item_request_builder.go b/pkg/github/repos/item_item_hooks_item_deliveries_with_delivery_item_request_builder.go index c65ec570..702ab200 100644 --- a/pkg/github/repos/item_item_hooks_item_deliveries_with_delivery_item_request_builder.go +++ b/pkg/github/repos/item_item_hooks_item_deliveries_with_delivery_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id}\deliveries\{delivery_id} +// ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\deliveries\{delivery_id} type ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder) Attempts()( // NewItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilderInternal instantiates a new ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder and sets the default values. func NewItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder) { m := &ItemItemHooksItemDeliveriesWithDelivery_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}/deliveries/{delivery_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}/deliveries/{delivery_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_item_pings_request_builder.go b/pkg/github/repos/item_item_hooks_item_pings_request_builder.go index a5f61a3b..60c74bc3 100644 --- a/pkg/github/repos/item_item_hooks_item_pings_request_builder.go +++ b/pkg/github/repos/item_item_hooks_item_pings_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksItemPingsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id}\pings +// ItemItemHooksItemPingsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\pings type ItemItemHooksItemPingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemHooksItemPingsRequestBuilderInternal instantiates a new ItemItemHooksItemPingsRequestBuilder and sets the default values. func NewItemItemHooksItemPingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksItemPingsRequestBuilder) { m := &ItemItemHooksItemPingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}/pings", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}/pings", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_item_tests_request_builder.go b/pkg/github/repos/item_item_hooks_item_tests_request_builder.go index 5000e075..5fd89b04 100644 --- a/pkg/github/repos/item_item_hooks_item_tests_request_builder.go +++ b/pkg/github/repos/item_item_hooks_item_tests_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksItemTestsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id}\tests +// ItemItemHooksItemTestsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id}\tests type ItemItemHooksItemTestsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemHooksItemTestsRequestBuilderInternal instantiates a new ItemItemHooksItemTestsRequestBuilder and sets the default values. func NewItemItemHooksItemTestsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksItemTestsRequestBuilder) { m := &ItemItemHooksItemTestsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}/tests", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}/tests", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_hooks_request_builder.go b/pkg/github/repos/item_item_hooks_request_builder.go index bd5c1089..dafc66af 100644 --- a/pkg/github/repos/item_item_hooks_request_builder.go +++ b/pkg/github/repos/item_item_hooks_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks +// ItemItemHooksRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks type ItemItemHooksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemHooksRequestBuilder) ByHook_id(hook_id int32)(*ItemItemHooksWit // NewItemItemHooksRequestBuilderInternal instantiates a new ItemItemHooksRequestBuilder and sets the default values. func NewItemItemHooksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksRequestBuilder) { m := &ItemItemHooksRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks{?page*,per_page*}", pathParameters), } return m } @@ -105,7 +105,7 @@ func (m *ItemItemHooksRequestBuilder) ToGetRequestInformation(ctx context.Contex // ToPostRequestInformation repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks canshare the same `config` as long as those webhooks do not have any `events` that overlap. // returns a *RequestInformation when successful func (m *ItemItemHooksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemHooksPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_hooks_with_hook_item_request_builder.go b/pkg/github/repos/item_item_hooks_with_hook_item_request_builder.go index fc02b546..fe0edb16 100644 --- a/pkg/github/repos/item_item_hooks_with_hook_item_request_builder.go +++ b/pkg/github/repos/item_item_hooks_with_hook_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemHooksWithHook_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\hooks\{hook_id} +// ItemItemHooksWithHook_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\hooks\{hook_id} type ItemItemHooksWithHook_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemHooksWithHook_ItemRequestBuilder) Config()(*ItemItemHooksItemCo // NewItemItemHooksWithHook_ItemRequestBuilderInternal instantiates a new ItemItemHooksWithHook_ItemRequestBuilder and sets the default values. func NewItemItemHooksWithHook_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemHooksWithHook_ItemRequestBuilder) { m := &ItemItemHooksWithHook_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/hooks/{hook_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/hooks/{hook_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_import_authors_request_builder.go b/pkg/github/repos/item_item_import_authors_request_builder.go index ab8594cc..44abb33a 100644 --- a/pkg/github/repos/item_item_import_authors_request_builder.go +++ b/pkg/github/repos/item_item_import_authors_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemImportAuthorsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\import\authors +// ItemItemImportAuthorsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\authors type ItemItemImportAuthorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -30,7 +30,7 @@ func (m *ItemItemImportAuthorsRequestBuilder) ByAuthor_id(author_id int32)(*Item // NewItemItemImportAuthorsRequestBuilderInternal instantiates a new ItemItemImportAuthorsRequestBuilder and sets the default values. func NewItemItemImportAuthorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemImportAuthorsRequestBuilder) { m := &ItemItemImportAuthorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/import/authors{?since*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/import/authors{?since*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_import_authors_with_author_item_request_builder.go b/pkg/github/repos/item_item_import_authors_with_author_item_request_builder.go index dda7e2a2..0fb44ff5 100644 --- a/pkg/github/repos/item_item_import_authors_with_author_item_request_builder.go +++ b/pkg/github/repos/item_item_import_authors_with_author_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemImportAuthorsWithAuthor_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\import\authors\{author_id} +// ItemItemImportAuthorsWithAuthor_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\authors\{author_id} type ItemItemImportAuthorsWithAuthor_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemImportAuthorsWithAuthor_ItemRequestBuilderInternal instantiates a new ItemItemImportAuthorsWithAuthor_ItemRequestBuilder and sets the default values. func NewItemItemImportAuthorsWithAuthor_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemImportAuthorsWithAuthor_ItemRequestBuilder) { m := &ItemItemImportAuthorsWithAuthor_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/import/authors/{author_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/import/authors/{author_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_import_large_files_request_builder.go b/pkg/github/repos/item_item_import_large_files_request_builder.go index 961e814d..387c4140 100644 --- a/pkg/github/repos/item_item_import_large_files_request_builder.go +++ b/pkg/github/repos/item_item_import_large_files_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemImportLarge_filesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\import\large_files +// ItemItemImportLarge_filesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\large_files type ItemItemImportLarge_filesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemImportLarge_filesRequestBuilderInternal instantiates a new ItemItemImportLarge_filesRequestBuilder and sets the default values. func NewItemItemImportLarge_filesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemImportLarge_filesRequestBuilder) { m := &ItemItemImportLarge_filesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/import/large_files", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/import/large_files", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_import_lfs_request_builder.go b/pkg/github/repos/item_item_import_lfs_request_builder.go index 39c15767..e56d7c53 100644 --- a/pkg/github/repos/item_item_import_lfs_request_builder.go +++ b/pkg/github/repos/item_item_import_lfs_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemImportLfsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\import\lfs +// ItemItemImportLfsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import\lfs type ItemItemImportLfsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemImportLfsRequestBuilderInternal instantiates a new ItemItemImportLfsRequestBuilder and sets the default values. func NewItemItemImportLfsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemImportLfsRequestBuilder) { m := &ItemItemImportLfsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/import/lfs", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/import/lfs", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_import_request_builder.go b/pkg/github/repos/item_item_import_request_builder.go index 32eb4c3f..dafca4d4 100644 --- a/pkg/github/repos/item_item_import_request_builder.go +++ b/pkg/github/repos/item_item_import_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemImportRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\import +// ItemItemImportRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\import type ItemItemImportRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemImportRequestBuilder) Authors()(*ItemItemImportAuthorsRequestBu // NewItemItemImportRequestBuilderInternal instantiates a new ItemItemImportRequestBuilder and sets the default values. func NewItemItemImportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemImportRequestBuilder) { m := &ItemItemImportRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/import", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/import", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_installation_request_builder.go b/pkg/github/repos/item_item_installation_request_builder.go index b3638b8b..f3ea07dd 100644 --- a/pkg/github/repos/item_item_installation_request_builder.go +++ b/pkg/github/repos/item_item_installation_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemInstallationRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\installation +// ItemItemInstallationRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\installation type ItemItemInstallationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemInstallationRequestBuilderInternal instantiates a new ItemItemInstallationRequestBuilder and sets the default values. func NewItemItemInstallationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemInstallationRequestBuilder) { m := &ItemItemInstallationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/installation", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/installation", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_interaction_limits_request_builder.go b/pkg/github/repos/item_item_interaction_limits_request_builder.go index b5ea21da..a5e45336 100644 --- a/pkg/github/repos/item_item_interaction_limits_request_builder.go +++ b/pkg/github/repos/item_item_interaction_limits_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemInteractionLimitsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\interaction-limits +// ItemItemInteractionLimitsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\interaction-limits type ItemItemInteractionLimitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemInteractionLimitsRequestBuilderInternal instantiates a new ItemItemInteractionLimitsRequestBuilder and sets the default values. func NewItemItemInteractionLimitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemInteractionLimitsRequestBuilder) { m := &ItemItemInteractionLimitsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/interaction-limits", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/interaction-limits", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_invitations_request_builder.go b/pkg/github/repos/item_item_invitations_request_builder.go index 5cb06eb3..7a796a5f 100644 --- a/pkg/github/repos/item_item_invitations_request_builder.go +++ b/pkg/github/repos/item_item_invitations_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemInvitationsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\invitations +// ItemItemInvitationsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\invitations type ItemItemInvitationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemInvitationsRequestBuilder) ByInvitation_id(invitation_id int32) // NewItemItemInvitationsRequestBuilderInternal instantiates a new ItemItemInvitationsRequestBuilder and sets the default values. func NewItemItemInvitationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemInvitationsRequestBuilder) { m := &ItemItemInvitationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/invitations{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/invitations{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_invitations_with_invitation_item_request_builder.go b/pkg/github/repos/item_item_invitations_with_invitation_item_request_builder.go index a9460cc6..1decaeb5 100644 --- a/pkg/github/repos/item_item_invitations_with_invitation_item_request_builder.go +++ b/pkg/github/repos/item_item_invitations_with_invitation_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemInvitationsWithInvitation_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\invitations\{invitation_id} +// ItemItemInvitationsWithInvitation_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\invitations\{invitation_id} type ItemItemInvitationsWithInvitation_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemInvitationsWithInvitation_ItemRequestBuilderInternal instantiates a new ItemItemInvitationsWithInvitation_ItemRequestBuilder and sets the default values. func NewItemItemInvitationsWithInvitation_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemInvitationsWithInvitation_ItemRequestBuilder) { m := &ItemItemInvitationsWithInvitation_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/invitations/{invitation_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/invitations/{invitation_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_comments_item_reactions_request_builder.go b/pkg/github/repos/item_item_issues_comments_item_reactions_request_builder.go index 3595b27e..52bf0511 100644 --- a/pkg/github/repos/item_item_issues_comments_item_reactions_request_builder.go +++ b/pkg/github/repos/item_item_issues_comments_item_reactions_request_builder.go @@ -8,7 +8,7 @@ import ( i4962a446a8e590313347ef7c73ec2d481be83dcd51a243c337358fc09ae22a4e "github.com/octokit/go-sdk/pkg/github/repos/item/item/issues/comments/item/reactions" ) -// ItemItemIssuesCommentsItemReactionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\comments\{comment_id}\reactions +// ItemItemIssuesCommentsItemReactionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments\{comment_id}\reactions type ItemItemIssuesCommentsItemReactionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -34,7 +34,7 @@ func (m *ItemItemIssuesCommentsItemReactionsRequestBuilder) ByReaction_id(reacti // NewItemItemIssuesCommentsItemReactionsRequestBuilderInternal instantiates a new ItemItemIssuesCommentsItemReactionsRequestBuilder and sets the default values. func NewItemItemIssuesCommentsItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesCommentsItemReactionsRequestBuilder) { m := &ItemItemIssuesCommentsItemReactionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/comments/{comment_id}/reactions{?content*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/comments/{comment_id}/reactions{?content*,page*,per_page*}", pathParameters), } return m } @@ -104,7 +104,7 @@ func (m *ItemItemIssuesCommentsItemReactionsRequestBuilder) ToGetRequestInformat // ToPostRequestInformation create a reaction to an [issue comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment). A response with an HTTP `200` status means that you already added the reaction type to this issue comment. // returns a *RequestInformation when successful func (m *ItemItemIssuesCommentsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemIssuesCommentsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/comments/{comment_id}/reactions", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/comments/{comment_id}/reactions", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_issues_comments_item_reactions_with_reaction_item_request_builder.go b/pkg/github/repos/item_item_issues_comments_item_reactions_with_reaction_item_request_builder.go index f98849fd..c5e6a6f8 100644 --- a/pkg/github/repos/item_item_issues_comments_item_reactions_with_reaction_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_comments_item_reactions_with_reaction_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\comments\{comment_id}\reactions\{reaction_id} +// ItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments\{comment_id}\reactions\{reaction_id} type ItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilderInternal instantiates a new ItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilder and sets the default values. func NewItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilder) { m := &ItemItemIssuesCommentsItemReactionsWithReaction_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/comments/{comment_id}/reactions/{reaction_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/comments/{comment_id}/reactions/{reaction_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_comments_request_builder.go b/pkg/github/repos/item_item_issues_comments_request_builder.go index 72801b5e..cb5c4442 100644 --- a/pkg/github/repos/item_item_issues_comments_request_builder.go +++ b/pkg/github/repos/item_item_issues_comments_request_builder.go @@ -9,7 +9,7 @@ import ( if9fe7687d66ccbe48e81b41eb88b87988bd006a467b7e33a09cc95d9ac51aa3f "github.com/octokit/go-sdk/pkg/github/repos/item/item/issues/comments" ) -// ItemItemIssuesCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\comments +// ItemItemIssuesCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments type ItemItemIssuesCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -39,7 +39,7 @@ func (m *ItemItemIssuesCommentsRequestBuilder) ByComment_id(comment_id int32)(*I // NewItemItemIssuesCommentsRequestBuilderInternal instantiates a new ItemItemIssuesCommentsRequestBuilder and sets the default values. func NewItemItemIssuesCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesCommentsRequestBuilder) { m := &ItemItemIssuesCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/comments{?direction*,page*,per_page*,since*,sort*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/comments{?direction*,page*,per_page*,since*,sort*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_comments_with_comment_item_request_builder.go b/pkg/github/repos/item_item_issues_comments_with_comment_item_request_builder.go index e5a55de3..fe769265 100644 --- a/pkg/github/repos/item_item_issues_comments_with_comment_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_comments_with_comment_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\comments\{comment_id} +// ItemItemIssuesCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\comments\{comment_id} type ItemItemIssuesCommentsWithComment_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesCommentsWithComment_ItemRequestBuilderInternal instantiates a new ItemItemIssuesCommentsWithComment_ItemRequestBuilder and sets the default values. func NewItemItemIssuesCommentsWithComment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesCommentsWithComment_ItemRequestBuilder) { m := &ItemItemIssuesCommentsWithComment_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/comments/{comment_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/comments/{comment_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_events_request_builder.go b/pkg/github/repos/item_item_issues_events_request_builder.go index 7508fa0a..046625a8 100644 --- a/pkg/github/repos/item_item_issues_events_request_builder.go +++ b/pkg/github/repos/item_item_issues_events_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesEventsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\events +// ItemItemIssuesEventsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\events type ItemItemIssuesEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemIssuesEventsRequestBuilder) ByEvent_id(event_id int32)(*ItemIte // NewItemItemIssuesEventsRequestBuilderInternal instantiates a new ItemItemIssuesEventsRequestBuilder and sets the default values. func NewItemItemIssuesEventsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesEventsRequestBuilder) { m := &ItemItemIssuesEventsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/events{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/events{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_events_with_event_item_request_builder.go b/pkg/github/repos/item_item_issues_events_with_event_item_request_builder.go index c423dbfb..c98d1fcb 100644 --- a/pkg/github/repos/item_item_issues_events_with_event_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_events_with_event_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesEventsWithEvent_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\events\{event_id} +// ItemItemIssuesEventsWithEvent_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\events\{event_id} type ItemItemIssuesEventsWithEvent_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesEventsWithEvent_ItemRequestBuilderInternal instantiates a new ItemItemIssuesEventsWithEvent_ItemRequestBuilder and sets the default values. func NewItemItemIssuesEventsWithEvent_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesEventsWithEvent_ItemRequestBuilder) { m := &ItemItemIssuesEventsWithEvent_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/events/{event_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/events/{event_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_assignees_request_builder.go b/pkg/github/repos/item_item_issues_item_assignees_request_builder.go index 7c69811b..3853a9ee 100644 --- a/pkg/github/repos/item_item_issues_item_assignees_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_assignees_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemAssigneesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\assignees +// ItemItemIssuesItemAssigneesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\assignees type ItemItemIssuesItemAssigneesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ func (m *ItemItemIssuesItemAssigneesRequestBuilder) ByAssignee(assignee string)( // NewItemItemIssuesItemAssigneesRequestBuilderInternal instantiates a new ItemItemIssuesItemAssigneesRequestBuilder and sets the default values. func NewItemItemIssuesItemAssigneesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemAssigneesRequestBuilder) { m := &ItemItemIssuesItemAssigneesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/assignees", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/assignees", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_assignees_with_assignee_item_request_builder.go b/pkg/github/repos/item_item_issues_item_assignees_with_assignee_item_request_builder.go index 15549fcb..ac1f3da8 100644 --- a/pkg/github/repos/item_item_issues_item_assignees_with_assignee_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_assignees_with_assignee_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\assignees\{assignee} +// ItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\assignees\{assignee} type ItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilderInternal instantiates a new ItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilder and sets the default values. func NewItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilder) { m := &ItemItemIssuesItemAssigneesWithAssigneeItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/assignees/{assignee}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/assignees/{assignee}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_comments_request_builder.go b/pkg/github/repos/item_item_issues_item_comments_request_builder.go index 479e3b10..ea61e6f6 100644 --- a/pkg/github/repos/item_item_issues_item_comments_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_comments_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\comments +// ItemItemIssuesItemCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\comments type ItemItemIssuesItemCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ type ItemItemIssuesItemCommentsRequestBuilderGetQueryParameters struct { // NewItemItemIssuesItemCommentsRequestBuilderInternal instantiates a new ItemItemIssuesItemCommentsRequestBuilder and sets the default values. func NewItemItemIssuesItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemCommentsRequestBuilder) { m := &ItemItemIssuesItemCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/comments{?page*,per_page*,since*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/comments{?page*,per_page*,since*}", pathParameters), } return m } @@ -101,7 +101,7 @@ func (m *ItemItemIssuesItemCommentsRequestBuilder) ToGetRequestInformation(ctx c // ToPostRequestInformation you can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications).Creating content too quickly using this endpoint may result in secondary rate limiting.For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. // returns a *RequestInformation when successful func (m *ItemItemIssuesItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemIssuesItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/comments", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/comments", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_issues_item_events_request_builder.go b/pkg/github/repos/item_item_issues_item_events_request_builder.go index b7a8ba6e..753783ce 100644 --- a/pkg/github/repos/item_item_issues_item_events_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_events_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemEventsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\events +// ItemItemIssuesItemEventsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\events type ItemItemIssuesItemEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemIssuesItemEventsRequestBuilderGetQueryParameters struct { // NewItemItemIssuesItemEventsRequestBuilderInternal instantiates a new ItemItemIssuesItemEventsRequestBuilder and sets the default values. func NewItemItemIssuesItemEventsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemEventsRequestBuilder) { m := &ItemItemIssuesItemEventsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/events{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/events{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_labels_request_builder.go b/pkg/github/repos/item_item_issues_item_labels_request_builder.go index 3566c844..0deecb62 100644 --- a/pkg/github/repos/item_item_issues_item_labels_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_labels_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemLabelsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\labels +// ItemItemIssuesItemLabelsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\labels type ItemItemIssuesItemLabelsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -505,7 +505,7 @@ func (m *ItemItemIssuesItemLabelsRequestBuilder) ByName(name string)(*ItemItemIs // NewItemItemIssuesItemLabelsRequestBuilderInternal instantiates a new ItemItemIssuesItemLabelsRequestBuilder and sets the default values. func NewItemItemIssuesItemLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemLabelsRequestBuilder) { m := &ItemItemIssuesItemLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/labels{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/labels{?page*,per_page*}", pathParameters), } return m } @@ -627,7 +627,7 @@ func (m *ItemItemIssuesItemLabelsRequestBuilder) Put(ctx context.Context, body L // ToDeleteRequestInformation removes all labels from an issue. // returns a *RequestInformation when successful func (m *ItemItemIssuesItemLabelsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/labels", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/labels", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil @@ -643,7 +643,7 @@ func (m *ItemItemIssuesItemLabelsRequestBuilder) ToGetRequestInformation(ctx con // ToPostRequestInformation adds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue. // returns a *RequestInformation when successful func (m *ItemItemIssuesItemLabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body LabelsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/labels", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/labels", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) @@ -655,7 +655,7 @@ func (m *ItemItemIssuesItemLabelsRequestBuilder) ToPostRequestInformation(ctx co // ToPutRequestInformation removes any previous labels and sets the new labels for an issue. // returns a *RequestInformation when successful func (m *ItemItemIssuesItemLabelsRequestBuilder) ToPutRequestInformation(ctx context.Context, body LabelsPutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/labels", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/labels", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_issues_item_labels_with_name_item_request_builder.go b/pkg/github/repos/item_item_issues_item_labels_with_name_item_request_builder.go index 3bda1c0b..91a72f02 100644 --- a/pkg/github/repos/item_item_issues_item_labels_with_name_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_labels_with_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemLabelsWithNameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\labels\{name} +// ItemItemIssuesItemLabelsWithNameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\labels\{name} type ItemItemIssuesItemLabelsWithNameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesItemLabelsWithNameItemRequestBuilderInternal instantiates a new ItemItemIssuesItemLabelsWithNameItemRequestBuilder and sets the default values. func NewItemItemIssuesItemLabelsWithNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemLabelsWithNameItemRequestBuilder) { m := &ItemItemIssuesItemLabelsWithNameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/labels/{name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/labels/{name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_lock_request_builder.go b/pkg/github/repos/item_item_issues_item_lock_request_builder.go index 6e0175c1..9e0a3a31 100644 --- a/pkg/github/repos/item_item_issues_item_lock_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_lock_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemLockRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\lock +// ItemItemIssuesItemLockRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\lock type ItemItemIssuesItemLockRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesItemLockRequestBuilderInternal instantiates a new ItemItemIssuesItemLockRequestBuilder and sets the default values. func NewItemItemIssuesItemLockRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemLockRequestBuilder) { m := &ItemItemIssuesItemLockRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/lock", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/lock", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_reactions_request_builder.go b/pkg/github/repos/item_item_issues_item_reactions_request_builder.go index 25d61488..d73e05aa 100644 --- a/pkg/github/repos/item_item_issues_item_reactions_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_reactions_request_builder.go @@ -8,7 +8,7 @@ import ( i23dfc4d3062a1aeb05c0a81c841e05d19316f4891ddc2aeb575a550bc4053b96 "github.com/octokit/go-sdk/pkg/github/repos/item/item/issues/item/reactions" ) -// ItemItemIssuesItemReactionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\reactions +// ItemItemIssuesItemReactionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\reactions type ItemItemIssuesItemReactionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -34,7 +34,7 @@ func (m *ItemItemIssuesItemReactionsRequestBuilder) ByReaction_id(reaction_id in // NewItemItemIssuesItemReactionsRequestBuilderInternal instantiates a new ItemItemIssuesItemReactionsRequestBuilder and sets the default values. func NewItemItemIssuesItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemReactionsRequestBuilder) { m := &ItemItemIssuesItemReactionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/reactions{?content*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/reactions{?content*,page*,per_page*}", pathParameters), } return m } @@ -106,7 +106,7 @@ func (m *ItemItemIssuesItemReactionsRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation create a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-an-issue). A response with an HTTP `200` status means that you already added the reaction type to this issue. // returns a *RequestInformation when successful func (m *ItemItemIssuesItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemIssuesItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/reactions", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/reactions", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_issues_item_reactions_with_reaction_item_request_builder.go b/pkg/github/repos/item_item_issues_item_reactions_with_reaction_item_request_builder.go index 9ce19f60..cc2a264a 100644 --- a/pkg/github/repos/item_item_issues_item_reactions_with_reaction_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_reactions_with_reaction_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemIssuesItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\reactions\{reaction_id} +// ItemItemIssuesItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\reactions\{reaction_id} type ItemItemIssuesItemReactionsWithReaction_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemIssuesItemReactionsWithReaction_ItemRequestBuilderInternal instantiates a new ItemItemIssuesItemReactionsWithReaction_ItemRequestBuilder and sets the default values. func NewItemItemIssuesItemReactionsWithReaction_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemReactionsWithReaction_ItemRequestBuilder) { m := &ItemItemIssuesItemReactionsWithReaction_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/reactions/{reaction_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/reactions/{reaction_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_item_timeline_request_builder.go b/pkg/github/repos/item_item_issues_item_timeline_request_builder.go index 0b80c121..5f50f849 100644 --- a/pkg/github/repos/item_item_issues_item_timeline_request_builder.go +++ b/pkg/github/repos/item_item_issues_item_timeline_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesItemTimelineRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number}\timeline +// ItemItemIssuesItemTimelineRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\timeline type ItemItemIssuesItemTimelineRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemIssuesItemTimelineRequestBuilderGetQueryParameters struct { // NewItemItemIssuesItemTimelineRequestBuilderInternal instantiates a new ItemItemIssuesItemTimelineRequestBuilder and sets the default values. func NewItemItemIssuesItemTimelineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesItemTimelineRequestBuilder) { m := &ItemItemIssuesItemTimelineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}/timeline{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/timeline{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_issues_request_builder.go b/pkg/github/repos/item_item_issues_request_builder.go index b0d3ccef..f1043728 100644 --- a/pkg/github/repos/item_item_issues_request_builder.go +++ b/pkg/github/repos/item_item_issues_request_builder.go @@ -9,7 +9,7 @@ import ( i787c2810dc1fca202084462fd425cb4203e935ffcb1f365e1aa1ff3aabf406d4 "github.com/octokit/go-sdk/pkg/github/repos/item/item/issues" ) -// ItemItemIssuesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues +// ItemItemIssuesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues type ItemItemIssuesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -56,7 +56,7 @@ func (m *ItemItemIssuesRequestBuilder) Comments()(*ItemItemIssuesCommentsRequest // NewItemItemIssuesRequestBuilderInternal instantiates a new ItemItemIssuesRequestBuilder and sets the default values. func NewItemItemIssuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesRequestBuilder) { m := &ItemItemIssuesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues{?assignee*,creator*,direction*,labels*,mentioned*,milestone*,page*,per_page*,since*,sort*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues{?assignee*,creator*,direction*,labels*,mentioned*,milestone*,page*,per_page*,since*,sort*,state*}", pathParameters), } return m } @@ -143,7 +143,7 @@ func (m *ItemItemIssuesRequestBuilder) ToGetRequestInformation(ctx context.Conte // ToPostRequestInformation any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://docs.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. // returns a *RequestInformation when successful func (m *ItemItemIssuesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemIssuesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_issues_with_issue_number_item_request_builder.go b/pkg/github/repos/item_item_issues_with_issue_number_item_request_builder.go index 7cefaa17..a9cc5694 100644 --- a/pkg/github/repos/item_item_issues_with_issue_number_item_request_builder.go +++ b/pkg/github/repos/item_item_issues_with_issue_number_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemIssuesWithIssue_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\issues\{issue_number} +// ItemItemIssuesWithIssue_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number} type ItemItemIssuesWithIssue_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemIssuesWithIssue_numberItemRequestBuilder) Comments()(*ItemItemI // NewItemItemIssuesWithIssue_numberItemRequestBuilderInternal instantiates a new ItemItemIssuesWithIssue_numberItemRequestBuilder and sets the default values. func NewItemItemIssuesWithIssue_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemIssuesWithIssue_numberItemRequestBuilder) { m := &ItemItemIssuesWithIssue_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/issues/{issue_number}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_keys_request_builder.go b/pkg/github/repos/item_item_keys_request_builder.go index f6487a5f..4e3f3511 100644 --- a/pkg/github/repos/item_item_keys_request_builder.go +++ b/pkg/github/repos/item_item_keys_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemKeysRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\keys +// ItemItemKeysRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\keys type ItemItemKeysRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemKeysRequestBuilder) ByKey_id(key_id int32)(*ItemItemKeysWithKey // NewItemItemKeysRequestBuilderInternal instantiates a new ItemItemKeysRequestBuilder and sets the default values. func NewItemItemKeysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemKeysRequestBuilder) { m := &ItemItemKeysRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/keys{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/keys{?page*,per_page*}", pathParameters), } return m } @@ -96,7 +96,7 @@ func (m *ItemItemKeysRequestBuilder) ToGetRequestInformation(ctx context.Context // ToPostRequestInformation you can create a read-only deploy key. // returns a *RequestInformation when successful func (m *ItemItemKeysRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemKeysPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/keys", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/keys", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_keys_with_key_item_request_builder.go b/pkg/github/repos/item_item_keys_with_key_item_request_builder.go index fa58b1b7..ed992376 100644 --- a/pkg/github/repos/item_item_keys_with_key_item_request_builder.go +++ b/pkg/github/repos/item_item_keys_with_key_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemKeysWithKey_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\keys\{key_id} +// ItemItemKeysWithKey_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\keys\{key_id} type ItemItemKeysWithKey_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemKeysWithKey_ItemRequestBuilderInternal instantiates a new ItemItemKeysWithKey_ItemRequestBuilder and sets the default values. func NewItemItemKeysWithKey_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemKeysWithKey_ItemRequestBuilder) { m := &ItemItemKeysWithKey_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/keys/{key_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/keys/{key_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_labels_request_builder.go b/pkg/github/repos/item_item_labels_request_builder.go index aef1a93b..d9480d14 100644 --- a/pkg/github/repos/item_item_labels_request_builder.go +++ b/pkg/github/repos/item_item_labels_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemLabelsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\labels +// ItemItemLabelsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\labels type ItemItemLabelsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -32,7 +32,7 @@ func (m *ItemItemLabelsRequestBuilder) ByName(name string)(*ItemItemLabelsWithNa // NewItemItemLabelsRequestBuilderInternal instantiates a new ItemItemLabelsRequestBuilder and sets the default values. func NewItemItemLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemLabelsRequestBuilder) { m := &ItemItemLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/labels{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/labels{?page*,per_page*}", pathParameters), } return m } @@ -104,7 +104,7 @@ func (m *ItemItemLabelsRequestBuilder) ToGetRequestInformation(ctx context.Conte // ToPostRequestInformation creates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid [hexadecimal color code](http://www.color-hex.com/). // returns a *RequestInformation when successful func (m *ItemItemLabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemLabelsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/labels", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/labels", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_labels_with_name_item_request_builder.go b/pkg/github/repos/item_item_labels_with_name_item_request_builder.go index 4d0c605f..154825eb 100644 --- a/pkg/github/repos/item_item_labels_with_name_item_request_builder.go +++ b/pkg/github/repos/item_item_labels_with_name_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemLabelsWithNameItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\labels\{name} +// ItemItemLabelsWithNameItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\labels\{name} type ItemItemLabelsWithNameItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemLabelsWithNameItemRequestBuilderInternal instantiates a new ItemItemLabelsWithNameItemRequestBuilder and sets the default values. func NewItemItemLabelsWithNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemLabelsWithNameItemRequestBuilder) { m := &ItemItemLabelsWithNameItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/labels/{name}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/labels/{name}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_languages_request_builder.go b/pkg/github/repos/item_item_languages_request_builder.go index f1864ba8..c232a8dc 100644 --- a/pkg/github/repos/item_item_languages_request_builder.go +++ b/pkg/github/repos/item_item_languages_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemLanguagesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\languages +// ItemItemLanguagesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\languages type ItemItemLanguagesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemLanguagesRequestBuilderInternal instantiates a new ItemItemLanguagesRequestBuilder and sets the default values. func NewItemItemLanguagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemLanguagesRequestBuilder) { m := &ItemItemLanguagesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/languages", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/languages", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_license_request_builder.go b/pkg/github/repos/item_item_license_request_builder.go index 70184673..931a321f 100644 --- a/pkg/github/repos/item_item_license_request_builder.go +++ b/pkg/github/repos/item_item_license_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemLicenseRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\license +// ItemItemLicenseRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\license type ItemItemLicenseRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemLicenseRequestBuilderGetQueryParameters struct { // NewItemItemLicenseRequestBuilderInternal instantiates a new ItemItemLicenseRequestBuilder and sets the default values. func NewItemItemLicenseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemLicenseRequestBuilder) { m := &ItemItemLicenseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/license{?ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/license{?ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_merge_upstream_request_builder.go b/pkg/github/repos/item_item_merge_upstream_request_builder.go index 34c363a3..3ec9bb9a 100644 --- a/pkg/github/repos/item_item_merge_upstream_request_builder.go +++ b/pkg/github/repos/item_item_merge_upstream_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemMergeUpstreamRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\merge-upstream +// ItemItemMergeUpstreamRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\merge-upstream type ItemItemMergeUpstreamRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemMergeUpstreamRequestBuilderInternal instantiates a new ItemItemMergeUpstreamRequestBuilder and sets the default values. func NewItemItemMergeUpstreamRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemMergeUpstreamRequestBuilder) { m := &ItemItemMergeUpstreamRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/merge-upstream", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/merge-upstream", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_merges_request_builder.go b/pkg/github/repos/item_item_merges_request_builder.go index 27c1d7e1..55d62677 100644 --- a/pkg/github/repos/item_item_merges_request_builder.go +++ b/pkg/github/repos/item_item_merges_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemMergesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\merges +// ItemItemMergesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\merges type ItemItemMergesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemMergesRequestBuilderInternal instantiates a new ItemItemMergesRequestBuilder and sets the default values. func NewItemItemMergesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemMergesRequestBuilder) { m := &ItemItemMergesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/merges", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/merges", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_milestones_item_labels_request_builder.go b/pkg/github/repos/item_item_milestones_item_labels_request_builder.go index b3a0f07e..d5baaa92 100644 --- a/pkg/github/repos/item_item_milestones_item_labels_request_builder.go +++ b/pkg/github/repos/item_item_milestones_item_labels_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemMilestonesItemLabelsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\milestones\{milestone_number}\labels +// ItemItemMilestonesItemLabelsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\milestones\{milestone_number}\labels type ItemItemMilestonesItemLabelsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemMilestonesItemLabelsRequestBuilderGetQueryParameters struct { // NewItemItemMilestonesItemLabelsRequestBuilderInternal instantiates a new ItemItemMilestonesItemLabelsRequestBuilder and sets the default values. func NewItemItemMilestonesItemLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemMilestonesItemLabelsRequestBuilder) { m := &ItemItemMilestonesItemLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/milestones/{milestone_number}/labels{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/milestones/{milestone_number}/labels{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_milestones_request_builder.go b/pkg/github/repos/item_item_milestones_request_builder.go index 20215836..41be1848 100644 --- a/pkg/github/repos/item_item_milestones_request_builder.go +++ b/pkg/github/repos/item_item_milestones_request_builder.go @@ -8,7 +8,7 @@ import ( i1ebd97b17bc9aa912e6d52ba66eb2fba73070ddd43b0bc79944e735e3a7ba7c7 "github.com/octokit/go-sdk/pkg/github/repos/item/item/milestones" ) -// ItemItemMilestonesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\milestones +// ItemItemMilestonesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\milestones type ItemItemMilestonesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -38,7 +38,7 @@ func (m *ItemItemMilestonesRequestBuilder) ByMilestone_number(milestone_number i // NewItemItemMilestonesRequestBuilderInternal instantiates a new ItemItemMilestonesRequestBuilder and sets the default values. func NewItemItemMilestonesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemMilestonesRequestBuilder) { m := &ItemItemMilestonesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/milestones{?direction*,page*,per_page*,sort*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/milestones{?direction*,page*,per_page*,sort*,state*}", pathParameters), } return m } @@ -110,7 +110,7 @@ func (m *ItemItemMilestonesRequestBuilder) ToGetRequestInformation(ctx context.C // ToPostRequestInformation creates a milestone. // returns a *RequestInformation when successful func (m *ItemItemMilestonesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemMilestonesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/milestones", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/milestones", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_milestones_with_milestone_number_item_request_builder.go b/pkg/github/repos/item_item_milestones_with_milestone_number_item_request_builder.go index 189ebd74..93ad4c08 100644 --- a/pkg/github/repos/item_item_milestones_with_milestone_number_item_request_builder.go +++ b/pkg/github/repos/item_item_milestones_with_milestone_number_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemMilestonesWithMilestone_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\milestones\{milestone_number} +// ItemItemMilestonesWithMilestone_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\milestones\{milestone_number} type ItemItemMilestonesWithMilestone_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemMilestonesWithMilestone_numberItemRequestBuilderInternal instantiates a new ItemItemMilestonesWithMilestone_numberItemRequestBuilder and sets the default values. func NewItemItemMilestonesWithMilestone_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemMilestonesWithMilestone_numberItemRequestBuilder) { m := &ItemItemMilestonesWithMilestone_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/milestones/{milestone_number}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/milestones/{milestone_number}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_notifications_request_builder.go b/pkg/github/repos/item_item_notifications_request_builder.go index 7094345e..cfdb1233 100644 --- a/pkg/github/repos/item_item_notifications_request_builder.go +++ b/pkg/github/repos/item_item_notifications_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemNotificationsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\notifications +// ItemItemNotificationsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\notifications type ItemItemNotificationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -29,7 +29,7 @@ type ItemItemNotificationsRequestBuilderGetQueryParameters struct { // NewItemItemNotificationsRequestBuilderInternal instantiates a new ItemItemNotificationsRequestBuilder and sets the default values. func NewItemItemNotificationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemNotificationsRequestBuilder) { m := &ItemItemNotificationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/notifications{?all*,before*,page*,participating*,per_page*,since*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/notifications{?all*,before*,page*,participating*,per_page*,since*}", pathParameters), } return m } @@ -91,7 +91,7 @@ func (m *ItemItemNotificationsRequestBuilder) ToGetRequestInformation(ctx contex // ToPutRequestInformation marks all notifications in a repository as "read" for the current user. If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. // returns a *RequestInformation when successful func (m *ItemItemNotificationsRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemItemNotificationsPutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/notifications", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/notifications", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_pages_builds_latest_request_builder.go b/pkg/github/repos/item_item_pages_builds_latest_request_builder.go index 54c542cb..8d6020bf 100644 --- a/pkg/github/repos/item_item_pages_builds_latest_request_builder.go +++ b/pkg/github/repos/item_item_pages_builds_latest_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesBuildsLatestRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\builds\latest +// ItemItemPagesBuildsLatestRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\builds\latest type ItemItemPagesBuildsLatestRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPagesBuildsLatestRequestBuilderInternal instantiates a new ItemItemPagesBuildsLatestRequestBuilder and sets the default values. func NewItemItemPagesBuildsLatestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesBuildsLatestRequestBuilder) { m := &ItemItemPagesBuildsLatestRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/builds/latest", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/builds/latest", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pages_builds_request_builder.go b/pkg/github/repos/item_item_pages_builds_request_builder.go index a25fe280..3171607b 100644 --- a/pkg/github/repos/item_item_pages_builds_request_builder.go +++ b/pkg/github/repos/item_item_pages_builds_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesBuildsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\builds +// ItemItemPagesBuildsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\builds type ItemItemPagesBuildsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemPagesBuildsRequestBuilder) ByBuild_id(build_id int32)(*ItemItem // NewItemItemPagesBuildsRequestBuilderInternal instantiates a new ItemItemPagesBuildsRequestBuilder and sets the default values. func NewItemItemPagesBuildsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesBuildsRequestBuilder) { m := &ItemItemPagesBuildsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/builds{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/builds{?page*,per_page*}", pathParameters), } return m } @@ -98,7 +98,7 @@ func (m *ItemItemPagesBuildsRequestBuilder) ToGetRequestInformation(ctx context. // ToPostRequestInformation you can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.Build requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes. // returns a *RequestInformation when successful func (m *ItemItemPagesBuildsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/builds", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/builds", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil diff --git a/pkg/github/repos/item_item_pages_builds_with_build_item_request_builder.go b/pkg/github/repos/item_item_pages_builds_with_build_item_request_builder.go index 9a8ccaf3..a0289033 100644 --- a/pkg/github/repos/item_item_pages_builds_with_build_item_request_builder.go +++ b/pkg/github/repos/item_item_pages_builds_with_build_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesBuildsWithBuild_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\builds\{build_id} +// ItemItemPagesBuildsWithBuild_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\builds\{build_id} type ItemItemPagesBuildsWithBuild_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPagesBuildsWithBuild_ItemRequestBuilderInternal instantiates a new ItemItemPagesBuildsWithBuild_ItemRequestBuilder and sets the default values. func NewItemItemPagesBuildsWithBuild_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesBuildsWithBuild_ItemRequestBuilder) { m := &ItemItemPagesBuildsWithBuild_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/builds/{build_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/builds/{build_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pages_deployments_item_cancel_request_builder.go b/pkg/github/repos/item_item_pages_deployments_item_cancel_request_builder.go index 35927921..20c35633 100644 --- a/pkg/github/repos/item_item_pages_deployments_item_cancel_request_builder.go +++ b/pkg/github/repos/item_item_pages_deployments_item_cancel_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesDeploymentsItemCancelRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\deployments\{pages_deployment_id}\cancel +// ItemItemPagesDeploymentsItemCancelRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\deployments\{pages_deployment_id}\cancel type ItemItemPagesDeploymentsItemCancelRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPagesDeploymentsItemCancelRequestBuilderInternal instantiates a new ItemItemPagesDeploymentsItemCancelRequestBuilder and sets the default values. func NewItemItemPagesDeploymentsItemCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesDeploymentsItemCancelRequestBuilder) { m := &ItemItemPagesDeploymentsItemCancelRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/deployments/{pages_deployment_id}/cancel", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/deployments/{pages_deployment_id}/cancel", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pages_deployments_request_builder.go b/pkg/github/repos/item_item_pages_deployments_request_builder.go index cc0525f0..3b91fb80 100644 --- a/pkg/github/repos/item_item_pages_deployments_request_builder.go +++ b/pkg/github/repos/item_item_pages_deployments_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesDeploymentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\deployments +// ItemItemPagesDeploymentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\deployments type ItemItemPagesDeploymentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -24,7 +24,7 @@ func (m *ItemItemPagesDeploymentsRequestBuilder) ByPages_deployment_id(pages_dep // NewItemItemPagesDeploymentsRequestBuilderInternal instantiates a new ItemItemPagesDeploymentsRequestBuilder and sets the default values. func NewItemItemPagesDeploymentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesDeploymentsRequestBuilder) { m := &ItemItemPagesDeploymentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/deployments", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/deployments", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pages_deployments_with_pages_deployment_item_request_builder.go b/pkg/github/repos/item_item_pages_deployments_with_pages_deployment_item_request_builder.go index 8711418b..8ecc195e 100644 --- a/pkg/github/repos/item_item_pages_deployments_with_pages_deployment_item_request_builder.go +++ b/pkg/github/repos/item_item_pages_deployments_with_pages_deployment_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\deployments\{pages_deployment_id} +// ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\deployments\{pages_deployment_id} type ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder) Cancel // NewItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilderInternal instantiates a new ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder and sets the default values. func NewItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder) { m := &ItemItemPagesDeploymentsWithPages_deployment_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/deployments/{pages_deployment_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/deployments/{pages_deployment_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pages_health_request_builder.go b/pkg/github/repos/item_item_pages_health_request_builder.go index cf3aaa30..9bfb1c4c 100644 --- a/pkg/github/repos/item_item_pages_health_request_builder.go +++ b/pkg/github/repos/item_item_pages_health_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesHealthRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages\health +// ItemItemPagesHealthRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages\health type ItemItemPagesHealthRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPagesHealthRequestBuilderInternal instantiates a new ItemItemPagesHealthRequestBuilder and sets the default values. func NewItemItemPagesHealthRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesHealthRequestBuilder) { m := &ItemItemPagesHealthRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages/health", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages/health", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pages_request_builder.go b/pkg/github/repos/item_item_pages_request_builder.go index fb5a9949..3c913bb2 100644 --- a/pkg/github/repos/item_item_pages_request_builder.go +++ b/pkg/github/repos/item_item_pages_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPagesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pages +// ItemItemPagesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pages type ItemItemPagesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemPagesRequestBuilder) Builds()(*ItemItemPagesBuildsRequestBuilde // NewItemItemPagesRequestBuilderInternal instantiates a new ItemItemPagesRequestBuilder and sets the default values. func NewItemItemPagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPagesRequestBuilder) { m := &ItemItemPagesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pages", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pages", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_private_vulnerability_reporting_request_builder.go b/pkg/github/repos/item_item_private_vulnerability_reporting_request_builder.go index 980987b1..17ad41f6 100644 --- a/pkg/github/repos/item_item_private_vulnerability_reporting_request_builder.go +++ b/pkg/github/repos/item_item_private_vulnerability_reporting_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPrivateVulnerabilityReportingRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\private-vulnerability-reporting +// ItemItemPrivateVulnerabilityReportingRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\private-vulnerability-reporting type ItemItemPrivateVulnerabilityReportingRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPrivateVulnerabilityReportingRequestBuilderInternal instantiates a new ItemItemPrivateVulnerabilityReportingRequestBuilder and sets the default values. func NewItemItemPrivateVulnerabilityReportingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPrivateVulnerabilityReportingRequestBuilder) { m := &ItemItemPrivateVulnerabilityReportingRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/private-vulnerability-reporting", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/private-vulnerability-reporting", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_projects_request_builder.go b/pkg/github/repos/item_item_projects_request_builder.go index 32ef9ca9..94a9fb72 100644 --- a/pkg/github/repos/item_item_projects_request_builder.go +++ b/pkg/github/repos/item_item_projects_request_builder.go @@ -7,7 +7,7 @@ import ( iedf64ed44a0011ca62087b788afaa0899b92df0467761a33f17befb5c6646f39 "github.com/octokit/go-sdk/pkg/github/repos/item/item/projects" ) -// ItemItemProjectsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\projects +// ItemItemProjectsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\projects type ItemItemProjectsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ type ItemItemProjectsRequestBuilderGetQueryParameters struct { // NewItemItemProjectsRequestBuilderInternal instantiates a new ItemItemProjectsRequestBuilder and sets the default values. func NewItemItemProjectsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemProjectsRequestBuilder) { m := &ItemItemProjectsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/projects{?page*,per_page*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/projects{?page*,per_page*,state*}", pathParameters), } return m } @@ -109,7 +109,7 @@ func (m *ItemItemProjectsRequestBuilder) ToGetRequestInformation(ctx context.Con // ToPostRequestInformation creates a repository project board. Returns a `410 Gone` status if projects are disabled in the repository or if the repository does not have existing classic projects. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. // returns a *RequestInformation when successful func (m *ItemItemProjectsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemProjectsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/projects", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/projects", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_properties_request_builder.go b/pkg/github/repos/item_item_properties_request_builder.go index 6e658b4e..0ed8e862 100644 --- a/pkg/github/repos/item_item_properties_request_builder.go +++ b/pkg/github/repos/item_item_properties_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemPropertiesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\properties +// ItemItemPropertiesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\properties type ItemItemPropertiesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPropertiesRequestBuilderInternal instantiates a new ItemItemPropertiesRequestBuilder and sets the default values. func NewItemItemPropertiesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPropertiesRequestBuilder) { m := &ItemItemPropertiesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/properties", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/properties", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_properties_values_request_builder.go b/pkg/github/repos/item_item_properties_values_request_builder.go index 8b247f68..dc4ca6eb 100644 --- a/pkg/github/repos/item_item_properties_values_request_builder.go +++ b/pkg/github/repos/item_item_properties_values_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPropertiesValuesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\properties\values +// ItemItemPropertiesValuesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\properties\values type ItemItemPropertiesValuesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPropertiesValuesRequestBuilderInternal instantiates a new ItemItemPropertiesValuesRequestBuilder and sets the default values. func NewItemItemPropertiesValuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPropertiesValuesRequestBuilder) { m := &ItemItemPropertiesValuesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/properties/values", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/properties/values", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_comments_item_reactions_request_builder.go b/pkg/github/repos/item_item_pulls_comments_item_reactions_request_builder.go index 732d0651..45d2afaf 100644 --- a/pkg/github/repos/item_item_pulls_comments_item_reactions_request_builder.go +++ b/pkg/github/repos/item_item_pulls_comments_item_reactions_request_builder.go @@ -8,7 +8,7 @@ import ( i4616a3143f9ba47e6ce7ed361a63486cb652bc76f85469b9e0a828664000ecb5 "github.com/octokit/go-sdk/pkg/github/repos/item/item/pulls/comments/item/reactions" ) -// ItemItemPullsCommentsItemReactionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\comments\{comment_id}\reactions +// ItemItemPullsCommentsItemReactionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\comments\{comment_id}\reactions type ItemItemPullsCommentsItemReactionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -34,7 +34,7 @@ func (m *ItemItemPullsCommentsItemReactionsRequestBuilder) ByReaction_id(reactio // NewItemItemPullsCommentsItemReactionsRequestBuilderInternal instantiates a new ItemItemPullsCommentsItemReactionsRequestBuilder and sets the default values. func NewItemItemPullsCommentsItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsCommentsItemReactionsRequestBuilder) { m := &ItemItemPullsCommentsItemReactionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/comments/{comment_id}/reactions{?content*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/comments/{comment_id}/reactions{?content*,page*,per_page*}", pathParameters), } return m } @@ -104,7 +104,7 @@ func (m *ItemItemPullsCommentsItemReactionsRequestBuilder) ToGetRequestInformati // ToPostRequestInformation create a reaction to a [pull request review comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request). A response with an HTTP `200` status means that you already added the reaction type to this pull request review comment. // returns a *RequestInformation when successful func (m *ItemItemPullsCommentsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemPullsCommentsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/comments/{comment_id}/reactions", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/comments/{comment_id}/reactions", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_pulls_comments_item_reactions_with_reaction_item_request_builder.go b/pkg/github/repos/item_item_pulls_comments_item_reactions_with_reaction_item_request_builder.go index 5f6d71e9..aec7eadc 100644 --- a/pkg/github/repos/item_item_pulls_comments_item_reactions_with_reaction_item_request_builder.go +++ b/pkg/github/repos/item_item_pulls_comments_item_reactions_with_reaction_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\comments\{comment_id}\reactions\{reaction_id} +// ItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\comments\{comment_id}\reactions\{reaction_id} type ItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilderInternal instantiates a new ItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilder and sets the default values. func NewItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilder) { m := &ItemItemPullsCommentsItemReactionsWithReaction_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/comments/{comment_id}/reactions/{reaction_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/comments/{comment_id}/reactions/{reaction_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_comments_request_builder.go b/pkg/github/repos/item_item_pulls_comments_request_builder.go index 9fe75566..2c8a8899 100644 --- a/pkg/github/repos/item_item_pulls_comments_request_builder.go +++ b/pkg/github/repos/item_item_pulls_comments_request_builder.go @@ -9,7 +9,7 @@ import ( ib4d397322ec768ed4fc8434d537dcd71b5e6aa74ead18e7de1d535c73d675c96 "github.com/octokit/go-sdk/pkg/github/repos/item/item/pulls/comments" ) -// ItemItemPullsCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\comments +// ItemItemPullsCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\comments type ItemItemPullsCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -38,7 +38,7 @@ func (m *ItemItemPullsCommentsRequestBuilder) ByComment_id(comment_id int32)(*It // NewItemItemPullsCommentsRequestBuilderInternal instantiates a new ItemItemPullsCommentsRequestBuilder and sets the default values. func NewItemItemPullsCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsCommentsRequestBuilder) { m := &ItemItemPullsCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/comments{?direction*,page*,per_page*,since*,sort*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/comments{?direction*,page*,per_page*,since*,sort*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_comments_with_comment_item_request_builder.go b/pkg/github/repos/item_item_pulls_comments_with_comment_item_request_builder.go index f26cd14a..2c884d7b 100644 --- a/pkg/github/repos/item_item_pulls_comments_with_comment_item_request_builder.go +++ b/pkg/github/repos/item_item_pulls_comments_with_comment_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\comments\{comment_id} +// ItemItemPullsCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\comments\{comment_id} type ItemItemPullsCommentsWithComment_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsCommentsWithComment_ItemRequestBuilderInternal instantiates a new ItemItemPullsCommentsWithComment_ItemRequestBuilder and sets the default values. func NewItemItemPullsCommentsWithComment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsCommentsWithComment_ItemRequestBuilder) { m := &ItemItemPullsCommentsWithComment_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/comments/{comment_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/comments/{comment_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_codespaces_request_builder.go b/pkg/github/repos/item_item_pulls_item_codespaces_request_builder.go index 81aaa8b0..1c47fbc4 100644 --- a/pkg/github/repos/item_item_pulls_item_codespaces_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_codespaces_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemCodespacesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\codespaces +// ItemItemPullsItemCodespacesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\codespaces type ItemItemPullsItemCodespacesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemCodespacesRequestBuilderInternal instantiates a new ItemItemPullsItemCodespacesRequestBuilder and sets the default values. func NewItemItemPullsItemCodespacesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemCodespacesRequestBuilder) { m := &ItemItemPullsItemCodespacesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/codespaces", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/codespaces", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_comments_item_replies_request_builder.go b/pkg/github/repos/item_item_pulls_item_comments_item_replies_request_builder.go index cff0fb3b..26962f1a 100644 --- a/pkg/github/repos/item_item_pulls_item_comments_item_replies_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_comments_item_replies_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemCommentsItemRepliesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\comments\{comment_id}\replies +// ItemItemPullsItemCommentsItemRepliesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\comments\{comment_id}\replies type ItemItemPullsItemCommentsItemRepliesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemCommentsItemRepliesRequestBuilderInternal instantiates a new ItemItemPullsItemCommentsItemRepliesRequestBuilder and sets the default values. func NewItemItemPullsItemCommentsItemRepliesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemCommentsItemRepliesRequestBuilder) { m := &ItemItemPullsItemCommentsItemRepliesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/comments/{comment_id}/replies", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/comments/{comment_id}/replies", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_comments_request_builder.go b/pkg/github/repos/item_item_pulls_item_comments_request_builder.go index b1d86cd6..241debb1 100644 --- a/pkg/github/repos/item_item_pulls_item_comments_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_comments_request_builder.go @@ -9,7 +9,7 @@ import ( i7e815420148810f5a54942bff4de28f1f9dc6ef1e9fcbdfdb2255d0329e2272e "github.com/octokit/go-sdk/pkg/github/repos/item/item/pulls/item/comments" ) -// ItemItemPullsItemCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\comments +// ItemItemPullsItemCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\comments type ItemItemPullsItemCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -39,7 +39,7 @@ func (m *ItemItemPullsItemCommentsRequestBuilder) ByComment_id(comment_id int32) // NewItemItemPullsItemCommentsRequestBuilderInternal instantiates a new ItemItemPullsItemCommentsRequestBuilder and sets the default values. func NewItemItemPullsItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemCommentsRequestBuilder) { m := &ItemItemPullsItemCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/comments{?direction*,page*,per_page*,since*,sort*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/comments{?direction*,page*,per_page*,since*,sort*}", pathParameters), } return m } @@ -107,7 +107,7 @@ func (m *ItemItemPullsItemCommentsRequestBuilder) ToGetRequestInformation(ctx co // ToPostRequestInformation creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/issues/comments#create-an-issue-comment)."If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. // returns a *RequestInformation when successful func (m *ItemItemPullsItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemPullsItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/comments", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/comments", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_pulls_item_comments_with_comment_item_request_builder.go b/pkg/github/repos/item_item_pulls_item_comments_with_comment_item_request_builder.go index 64e62a21..9ab0a753 100644 --- a/pkg/github/repos/item_item_pulls_item_comments_with_comment_item_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_comments_with_comment_item_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemPullsItemCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\comments\{comment_id} +// ItemItemPullsItemCommentsWithComment_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\comments\{comment_id} type ItemItemPullsItemCommentsWithComment_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemCommentsWithComment_ItemRequestBuilderInternal instantiates a new ItemItemPullsItemCommentsWithComment_ItemRequestBuilder and sets the default values. func NewItemItemPullsItemCommentsWithComment_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemCommentsWithComment_ItemRequestBuilder) { m := &ItemItemPullsItemCommentsWithComment_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/comments/{comment_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/comments/{comment_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_commits_request_builder.go b/pkg/github/repos/item_item_pulls_item_commits_request_builder.go index 27574604..c46f81ab 100644 --- a/pkg/github/repos/item_item_pulls_item_commits_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_commits_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemCommitsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\commits +// ItemItemPullsItemCommitsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\commits type ItemItemPullsItemCommitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemPullsItemCommitsRequestBuilderGetQueryParameters struct { // NewItemItemPullsItemCommitsRequestBuilderInternal instantiates a new ItemItemPullsItemCommitsRequestBuilder and sets the default values. func NewItemItemPullsItemCommitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemCommitsRequestBuilder) { m := &ItemItemPullsItemCommitsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/commits{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/commits{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_files_request_builder.go b/pkg/github/repos/item_item_pulls_item_files_request_builder.go index 1336ef1b..71769b24 100644 --- a/pkg/github/repos/item_item_pulls_item_files_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_files_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemFilesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\files +// ItemItemPullsItemFilesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\files type ItemItemPullsItemFilesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemPullsItemFilesRequestBuilderGetQueryParameters struct { // NewItemItemPullsItemFilesRequestBuilderInternal instantiates a new ItemItemPullsItemFilesRequestBuilder and sets the default values. func NewItemItemPullsItemFilesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemFilesRequestBuilder) { m := &ItemItemPullsItemFilesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/files{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/files{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_merge_request_builder.go b/pkg/github/repos/item_item_pulls_item_merge_request_builder.go index 38773e4e..d2ad7fad 100644 --- a/pkg/github/repos/item_item_pulls_item_merge_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_merge_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemMergeRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\merge +// ItemItemPullsItemMergeRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\merge type ItemItemPullsItemMergeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemMergeRequestBuilderInternal instantiates a new ItemItemPullsItemMergeRequestBuilder and sets the default values. func NewItemItemPullsItemMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemMergeRequestBuilder) { m := &ItemItemPullsItemMergeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/merge", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/merge", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_requested_reviewers_request_builder.go b/pkg/github/repos/item_item_pulls_item_requested_reviewers_request_builder.go index 2bd1da36..eee956d7 100644 --- a/pkg/github/repos/item_item_pulls_item_requested_reviewers_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_requested_reviewers_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemRequested_reviewersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\requested_reviewers +// ItemItemPullsItemRequested_reviewersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\requested_reviewers type ItemItemPullsItemRequested_reviewersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemRequested_reviewersRequestBuilderInternal instantiates a new ItemItemPullsItemRequested_reviewersRequestBuilder and sets the default values. func NewItemItemPullsItemRequested_reviewersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemRequested_reviewersRequestBuilder) { m := &ItemItemPullsItemRequested_reviewersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/requested_reviewers", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/requested_reviewers", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_reviews_item_comments_request_builder.go b/pkg/github/repos/item_item_pulls_item_reviews_item_comments_request_builder.go index a2456d1d..30c3ae61 100644 --- a/pkg/github/repos/item_item_pulls_item_reviews_item_comments_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_reviews_item_comments_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemReviewsItemCommentsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\reviews\{review_id}\comments +// ItemItemPullsItemReviewsItemCommentsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\reviews\{review_id}\comments type ItemItemPullsItemReviewsItemCommentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemPullsItemReviewsItemCommentsRequestBuilderGetQueryParameters struct // NewItemItemPullsItemReviewsItemCommentsRequestBuilderInternal instantiates a new ItemItemPullsItemReviewsItemCommentsRequestBuilder and sets the default values. func NewItemItemPullsItemReviewsItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemReviewsItemCommentsRequestBuilder) { m := &ItemItemPullsItemReviewsItemCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/reviews/{review_id}/comments{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/reviews/{review_id}/comments{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_reviews_item_dismissals_request_builder.go b/pkg/github/repos/item_item_pulls_item_reviews_item_dismissals_request_builder.go index 5908c143..b1d39f9e 100644 --- a/pkg/github/repos/item_item_pulls_item_reviews_item_dismissals_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_reviews_item_dismissals_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemReviewsItemDismissalsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\reviews\{review_id}\dismissals +// ItemItemPullsItemReviewsItemDismissalsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\reviews\{review_id}\dismissals type ItemItemPullsItemReviewsItemDismissalsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemReviewsItemDismissalsRequestBuilderInternal instantiates a new ItemItemPullsItemReviewsItemDismissalsRequestBuilder and sets the default values. func NewItemItemPullsItemReviewsItemDismissalsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemReviewsItemDismissalsRequestBuilder) { m := &ItemItemPullsItemReviewsItemDismissalsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/reviews/{review_id}/dismissals", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/reviews/{review_id}/dismissals", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_reviews_item_events_request_builder.go b/pkg/github/repos/item_item_pulls_item_reviews_item_events_request_builder.go index b395d4e5..6468a619 100644 --- a/pkg/github/repos/item_item_pulls_item_reviews_item_events_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_reviews_item_events_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemReviewsItemEventsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\reviews\{review_id}\events +// ItemItemPullsItemReviewsItemEventsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\reviews\{review_id}\events type ItemItemPullsItemReviewsItemEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemReviewsItemEventsRequestBuilderInternal instantiates a new ItemItemPullsItemReviewsItemEventsRequestBuilder and sets the default values. func NewItemItemPullsItemReviewsItemEventsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemReviewsItemEventsRequestBuilder) { m := &ItemItemPullsItemReviewsItemEventsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/reviews/{review_id}/events", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/reviews/{review_id}/events", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_reviews_request_builder.go b/pkg/github/repos/item_item_pulls_item_reviews_request_builder.go index 3df852a1..e579339e 100644 --- a/pkg/github/repos/item_item_pulls_item_reviews_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_reviews_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemReviewsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\reviews +// ItemItemPullsItemReviewsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\reviews type ItemItemPullsItemReviewsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -31,7 +31,7 @@ func (m *ItemItemPullsItemReviewsRequestBuilder) ByReview_id(review_id int32)(*I // NewItemItemPullsItemReviewsRequestBuilderInternal instantiates a new ItemItemPullsItemReviewsRequestBuilder and sets the default values. func NewItemItemPullsItemReviewsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemReviewsRequestBuilder) { m := &ItemItemPullsItemReviewsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/reviews{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/reviews{?page*,per_page*}", pathParameters), } return m } @@ -99,7 +99,7 @@ func (m *ItemItemPullsItemReviewsRequestBuilder) ToGetRequestInformation(ctx con // ToPostRequestInformation creates a review on a specified pull request.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."Pull request reviews created in the `PENDING` state are not submitted and therefore do not include the `submitted_at` property in the response. To create a pending review for a pull request, leave the `event` parameter blank. For more information about submitting a `PENDING` review, see "[Submit a review for a pull request](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request)."**Note:** To comment on a specific line in a file, you need to first determine the position of that line in the diff. To see a pull request diff, add the `application/vnd.github.v3.diff` media type to the `Accept` header of a call to the [Get a pull request](https://docs.github.com/rest/pulls/pulls#get-a-pull-request) endpoint.The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. // returns a *RequestInformation when successful func (m *ItemItemPullsItemReviewsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemPullsItemReviewsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/reviews", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/reviews", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_pulls_item_reviews_with_review_item_request_builder.go b/pkg/github/repos/item_item_pulls_item_reviews_with_review_item_request_builder.go index 63d3ef92..09baf787 100644 --- a/pkg/github/repos/item_item_pulls_item_reviews_with_review_item_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_reviews_with_review_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemReviewsWithReview_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\reviews\{review_id} +// ItemItemPullsItemReviewsWithReview_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\reviews\{review_id} type ItemItemPullsItemReviewsWithReview_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemPullsItemReviewsWithReview_ItemRequestBuilder) Comments()(*Item // NewItemItemPullsItemReviewsWithReview_ItemRequestBuilderInternal instantiates a new ItemItemPullsItemReviewsWithReview_ItemRequestBuilder and sets the default values. func NewItemItemPullsItemReviewsWithReview_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemReviewsWithReview_ItemRequestBuilder) { m := &ItemItemPullsItemReviewsWithReview_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/reviews/{review_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/reviews/{review_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_item_update_branch_request_builder.go b/pkg/github/repos/item_item_pulls_item_update_branch_request_builder.go index 40a93baa..97310b69 100644 --- a/pkg/github/repos/item_item_pulls_item_update_branch_request_builder.go +++ b/pkg/github/repos/item_item_pulls_item_update_branch_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsItemUpdateBranchRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number}\update-branch +// ItemItemPullsItemUpdateBranchRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number}\update-branch type ItemItemPullsItemUpdateBranchRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemPullsItemUpdateBranchRequestBuilderInternal instantiates a new ItemItemPullsItemUpdateBranchRequestBuilder and sets the default values. func NewItemItemPullsItemUpdateBranchRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsItemUpdateBranchRequestBuilder) { m := &ItemItemPullsItemUpdateBranchRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}/update-branch", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}/update-branch", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_pulls_request_builder.go b/pkg/github/repos/item_item_pulls_request_builder.go index e986f389..5d190a44 100644 --- a/pkg/github/repos/item_item_pulls_request_builder.go +++ b/pkg/github/repos/item_item_pulls_request_builder.go @@ -8,7 +8,7 @@ import ( i4980f88b83fd6b3743c68ab8eff5072f163dacd27a6e92d0995ffa675b31f76d "github.com/octokit/go-sdk/pkg/github/repos/item/item/pulls" ) -// ItemItemPullsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls +// ItemItemPullsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls type ItemItemPullsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -47,7 +47,7 @@ func (m *ItemItemPullsRequestBuilder) Comments()(*ItemItemPullsCommentsRequestBu // NewItemItemPullsRequestBuilderInternal instantiates a new ItemItemPullsRequestBuilder and sets the default values. func NewItemItemPullsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsRequestBuilder) { m := &ItemItemPullsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls{?base*,direction*,head*,page*,per_page*,sort*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls{?base*,direction*,head*,page*,per_page*,sort*,state*}", pathParameters), } return m } @@ -119,7 +119,7 @@ func (m *ItemItemPullsRequestBuilder) ToGetRequestInformation(ctx context.Contex // ToPostRequestInformation draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.- **`application/vnd.github.diff`**: For more information, see "[git-diff](https://git-scm.com/docs/git-diff)" in the Git documentation. If a diff is corrupt, contact us through the [GitHub Support portal](https://support.github.com/). Include the repository name and pull request ID in your message. // returns a *RequestInformation when successful func (m *ItemItemPullsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemPullsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_pulls_with_pull_number_item_request_builder.go b/pkg/github/repos/item_item_pulls_with_pull_number_item_request_builder.go index 2360e1de..1eff3827 100644 --- a/pkg/github/repos/item_item_pulls_with_pull_number_item_request_builder.go +++ b/pkg/github/repos/item_item_pulls_with_pull_number_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemPullsWithPull_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\pulls\{pull_number} +// ItemItemPullsWithPull_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\pulls\{pull_number} type ItemItemPullsWithPull_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -28,7 +28,7 @@ func (m *ItemItemPullsWithPull_numberItemRequestBuilder) Commits()(*ItemItemPull // NewItemItemPullsWithPull_numberItemRequestBuilderInternal instantiates a new ItemItemPullsWithPull_numberItemRequestBuilder and sets the default values. func NewItemItemPullsWithPull_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemPullsWithPull_numberItemRequestBuilder) { m := &ItemItemPullsWithPull_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/pulls/{pull_number}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/pulls/{pull_number}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_readme_request_builder.go b/pkg/github/repos/item_item_readme_request_builder.go index eab1ec7e..88f3d993 100644 --- a/pkg/github/repos/item_item_readme_request_builder.go +++ b/pkg/github/repos/item_item_readme_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReadmeRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\readme +// ItemItemReadmeRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\readme type ItemItemReadmeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -30,7 +30,7 @@ func (m *ItemItemReadmeRequestBuilder) ByDir(dir string)(*ItemItemReadmeWithDirI // NewItemItemReadmeRequestBuilderInternal instantiates a new ItemItemReadmeRequestBuilder and sets the default values. func NewItemItemReadmeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReadmeRequestBuilder) { m := &ItemItemReadmeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/readme{?ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/readme{?ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_readme_with_dir_item_request_builder.go b/pkg/github/repos/item_item_readme_with_dir_item_request_builder.go index 3c95a528..b76f3359 100644 --- a/pkg/github/repos/item_item_readme_with_dir_item_request_builder.go +++ b/pkg/github/repos/item_item_readme_with_dir_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReadmeWithDirItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\readme\{dir} +// ItemItemReadmeWithDirItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\readme\{dir} type ItemItemReadmeWithDirItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemReadmeWithDirItemRequestBuilderGetQueryParameters struct { // NewItemItemReadmeWithDirItemRequestBuilderInternal instantiates a new ItemItemReadmeWithDirItemRequestBuilder and sets the default values. func NewItemItemReadmeWithDirItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReadmeWithDirItemRequestBuilder) { m := &ItemItemReadmeWithDirItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/readme/{dir}{?ref*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/readme/{dir}{?ref*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_assets_request_builder.go b/pkg/github/repos/item_item_releases_assets_request_builder.go index 11cc4a7d..ebbb38ea 100644 --- a/pkg/github/repos/item_item_releases_assets_request_builder.go +++ b/pkg/github/repos/item_item_releases_assets_request_builder.go @@ -5,7 +5,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemReleasesAssetsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\assets +// ItemItemReleasesAssetsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\assets type ItemItemReleasesAssetsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -22,7 +22,7 @@ func (m *ItemItemReleasesAssetsRequestBuilder) ByAsset_id(asset_id int32)(*ItemI // NewItemItemReleasesAssetsRequestBuilderInternal instantiates a new ItemItemReleasesAssetsRequestBuilder and sets the default values. func NewItemItemReleasesAssetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesAssetsRequestBuilder) { m := &ItemItemReleasesAssetsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/assets", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/assets", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_assets_with_asset_item_request_builder.go b/pkg/github/repos/item_item_releases_assets_with_asset_item_request_builder.go index c56b6f05..e4e01f91 100644 --- a/pkg/github/repos/item_item_releases_assets_with_asset_item_request_builder.go +++ b/pkg/github/repos/item_item_releases_assets_with_asset_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesAssetsWithAsset_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\assets\{asset_id} +// ItemItemReleasesAssetsWithAsset_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\assets\{asset_id} type ItemItemReleasesAssetsWithAsset_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemReleasesAssetsWithAsset_ItemRequestBuilderInternal instantiates a new ItemItemReleasesAssetsWithAsset_ItemRequestBuilder and sets the default values. func NewItemItemReleasesAssetsWithAsset_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesAssetsWithAsset_ItemRequestBuilder) { m := &ItemItemReleasesAssetsWithAsset_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/assets/{asset_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/assets/{asset_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_generate_notes_request_builder.go b/pkg/github/repos/item_item_releases_generate_notes_request_builder.go index 09ef17db..7a3aa246 100644 --- a/pkg/github/repos/item_item_releases_generate_notes_request_builder.go +++ b/pkg/github/repos/item_item_releases_generate_notes_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesGenerateNotesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\generate-notes +// ItemItemReleasesGenerateNotesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\generate-notes type ItemItemReleasesGenerateNotesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemReleasesGenerateNotesRequestBuilderInternal instantiates a new ItemItemReleasesGenerateNotesRequestBuilder and sets the default values. func NewItemItemReleasesGenerateNotesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesGenerateNotesRequestBuilder) { m := &ItemItemReleasesGenerateNotesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/generate-notes", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/generate-notes", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_item_assets_request_builder.go b/pkg/github/repos/item_item_releases_item_assets_request_builder.go index 9e31f7b9..a403c322 100644 --- a/pkg/github/repos/item_item_releases_item_assets_request_builder.go +++ b/pkg/github/repos/item_item_releases_item_assets_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesItemAssetsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\{release_id}\assets +// ItemItemReleasesItemAssetsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\{release_id}\assets type ItemItemReleasesItemAssetsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -25,7 +25,7 @@ type ItemItemReleasesItemAssetsRequestBuilderPostQueryParameters struct { // NewItemItemReleasesItemAssetsRequestBuilderInternal instantiates a new ItemItemReleasesItemAssetsRequestBuilder and sets the default values. func NewItemItemReleasesItemAssetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesItemAssetsRequestBuilder) { m := &ItemItemReleasesItemAssetsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/{release_id}/assets{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/{release_id}/assets{?page*,per_page*}", pathParameters), } return m } @@ -86,7 +86,7 @@ func (m *ItemItemReleasesItemAssetsRequestBuilder) ToGetRequestInformation(ctx c // ToPostRequestInformation this endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset. // returns a *RequestInformation when successful func (m *ItemItemReleasesItemAssetsRequestBuilder) ToPostRequestInformation(ctx context.Context, body []byte, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemReleasesItemAssetsRequestBuilderPostQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/{release_id}/assets?name={name}{&label*}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/{release_id}/assets?name={name}{&label*}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") diff --git a/pkg/github/repos/item_item_releases_item_reactions_request_builder.go b/pkg/github/repos/item_item_releases_item_reactions_request_builder.go index 17d8ac81..a2105f41 100644 --- a/pkg/github/repos/item_item_releases_item_reactions_request_builder.go +++ b/pkg/github/repos/item_item_releases_item_reactions_request_builder.go @@ -8,7 +8,7 @@ import ( id55cffcf6bbb94221b5dee244a08d4356fef6defe3cbba2cf764187f9d0ca7d2 "github.com/octokit/go-sdk/pkg/github/repos/item/item/releases/item/reactions" ) -// ItemItemReleasesItemReactionsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\{release_id}\reactions +// ItemItemReleasesItemReactionsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\{release_id}\reactions type ItemItemReleasesItemReactionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -34,7 +34,7 @@ func (m *ItemItemReleasesItemReactionsRequestBuilder) ByReaction_id(reaction_id // NewItemItemReleasesItemReactionsRequestBuilderInternal instantiates a new ItemItemReleasesItemReactionsRequestBuilder and sets the default values. func NewItemItemReleasesItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesItemReactionsRequestBuilder) { m := &ItemItemReleasesItemReactionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/{release_id}/reactions{?content*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/{release_id}/reactions{?content*,page*,per_page*}", pathParameters), } return m } @@ -104,7 +104,7 @@ func (m *ItemItemReleasesItemReactionsRequestBuilder) ToGetRequestInformation(ct // ToPostRequestInformation create a reaction to a [release](https://docs.github.com/rest/releases/releases#get-a-release). A response with a `Status: 200 OK` means that you already added the reaction type to this release. // returns a *RequestInformation when successful func (m *ItemItemReleasesItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemReleasesItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/{release_id}/reactions", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/{release_id}/reactions", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_releases_item_reactions_with_reaction_item_request_builder.go b/pkg/github/repos/item_item_releases_item_reactions_with_reaction_item_request_builder.go index 45a065a4..e120c005 100644 --- a/pkg/github/repos/item_item_releases_item_reactions_with_reaction_item_request_builder.go +++ b/pkg/github/repos/item_item_releases_item_reactions_with_reaction_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemReleasesItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\{release_id}\reactions\{reaction_id} +// ItemItemReleasesItemReactionsWithReaction_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\{release_id}\reactions\{reaction_id} type ItemItemReleasesItemReactionsWithReaction_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemReleasesItemReactionsWithReaction_ItemRequestBuilderInternal instantiates a new ItemItemReleasesItemReactionsWithReaction_ItemRequestBuilder and sets the default values. func NewItemItemReleasesItemReactionsWithReaction_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesItemReactionsWithReaction_ItemRequestBuilder) { m := &ItemItemReleasesItemReactionsWithReaction_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/{release_id}/reactions/{reaction_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/{release_id}/reactions/{reaction_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_latest_request_builder.go b/pkg/github/repos/item_item_releases_latest_request_builder.go index fdd26983..13de5341 100644 --- a/pkg/github/repos/item_item_releases_latest_request_builder.go +++ b/pkg/github/repos/item_item_releases_latest_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesLatestRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\latest +// ItemItemReleasesLatestRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\latest type ItemItemReleasesLatestRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemReleasesLatestRequestBuilderInternal instantiates a new ItemItemReleasesLatestRequestBuilder and sets the default values. func NewItemItemReleasesLatestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesLatestRequestBuilder) { m := &ItemItemReleasesLatestRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/latest", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/latest", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_request_builder.go b/pkg/github/repos/item_item_releases_request_builder.go index 879ec1a6..e8e42dd9 100644 --- a/pkg/github/repos/item_item_releases_request_builder.go +++ b/pkg/github/repos/item_item_releases_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases +// ItemItemReleasesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases type ItemItemReleasesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -36,7 +36,7 @@ func (m *ItemItemReleasesRequestBuilder) ByRelease_id(release_id int32)(*ItemIte // NewItemItemReleasesRequestBuilderInternal instantiates a new ItemItemReleasesRequestBuilder and sets the default values. func NewItemItemReleasesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesRequestBuilder) { m := &ItemItemReleasesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases{?page*,per_page*}", pathParameters), } return m } @@ -123,7 +123,7 @@ func (m *ItemItemReleasesRequestBuilder) ToGetRequestInformation(ctx context.Con // ToPostRequestInformation users with push access to the repository can create a release.This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." // returns a *RequestInformation when successful func (m *ItemItemReleasesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemReleasesPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_releases_tags_request_builder.go b/pkg/github/repos/item_item_releases_tags_request_builder.go index 9193504d..f46c5da3 100644 --- a/pkg/github/repos/item_item_releases_tags_request_builder.go +++ b/pkg/github/repos/item_item_releases_tags_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemReleasesTagsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\tags +// ItemItemReleasesTagsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\tags type ItemItemReleasesTagsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemReleasesTagsRequestBuilder) ByTag(tag string)(*ItemItemReleases // NewItemItemReleasesTagsRequestBuilderInternal instantiates a new ItemItemReleasesTagsRequestBuilder and sets the default values. func NewItemItemReleasesTagsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesTagsRequestBuilder) { m := &ItemItemReleasesTagsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/tags", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/tags", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_tags_with_tag_item_request_builder.go b/pkg/github/repos/item_item_releases_tags_with_tag_item_request_builder.go index 953befec..3d15f62c 100644 --- a/pkg/github/repos/item_item_releases_tags_with_tag_item_request_builder.go +++ b/pkg/github/repos/item_item_releases_tags_with_tag_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesTagsWithTagItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\tags\{tag} +// ItemItemReleasesTagsWithTagItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\tags\{tag} type ItemItemReleasesTagsWithTagItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemReleasesTagsWithTagItemRequestBuilderInternal instantiates a new ItemItemReleasesTagsWithTagItemRequestBuilder and sets the default values. func NewItemItemReleasesTagsWithTagItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesTagsWithTagItemRequestBuilder) { m := &ItemItemReleasesTagsWithTagItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/tags/{tag}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/tags/{tag}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_releases_with_release_item_request_builder.go b/pkg/github/repos/item_item_releases_with_release_item_request_builder.go index f93164c2..1c6d8c1d 100644 --- a/pkg/github/repos/item_item_releases_with_release_item_request_builder.go +++ b/pkg/github/repos/item_item_releases_with_release_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemReleasesWithRelease_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\releases\{release_id} +// ItemItemReleasesWithRelease_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\releases\{release_id} type ItemItemReleasesWithRelease_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ func (m *ItemItemReleasesWithRelease_ItemRequestBuilder) Assets()(*ItemItemRelea // NewItemItemReleasesWithRelease_ItemRequestBuilderInternal instantiates a new ItemItemReleasesWithRelease_ItemRequestBuilder and sets the default values. func NewItemItemReleasesWithRelease_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemReleasesWithRelease_ItemRequestBuilder) { m := &ItemItemReleasesWithRelease_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/releases/{release_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/releases/{release_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_repo403_error.go b/pkg/github/repos/item_item_repo403_error.go new file mode 100644 index 00000000..6e1369f7 --- /dev/null +++ b/pkg/github/repos/item_item_repo403_error.go @@ -0,0 +1,117 @@ +package repos + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ItemItemRepo403Error struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The documentation_url property + documentation_url *string + // The message property + message *string +} +// NewItemItemRepo403Error instantiates a new ItemItemRepo403Error and sets the default values. +func NewItemItemRepo403Error()(*ItemItemRepo403Error) { + m := &ItemItemRepo403Error{ + ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(), + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemRepo403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemRepo403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemRepo403Error(), nil +} +// Error the primary error message. +// returns a string when successful +func (m *ItemItemRepo403Error) Error()(string) { + return m.ApiError.Error() +} +// 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 *ItemItemRepo403Error) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDocumentationUrl gets the documentation_url property value. The documentation_url property +// returns a *string when successful +func (m *ItemItemRepo403Error) GetDocumentationUrl()(*string) { + return m.documentation_url +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemRepo403Error) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["documentation_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDocumentationUrl(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. The message property +// returns a *string when successful +func (m *ItemItemRepo403Error) GetMessage()(*string) { + return m.message +} +// Serialize serializes information the current object +func (m *ItemItemRepo403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("documentation_url", m.GetDocumentationUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + 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 *ItemItemRepo403Error) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDocumentationUrl sets the documentation_url property value. The documentation_url property +func (m *ItemItemRepo403Error) SetDocumentationUrl(value *string)() { + m.documentation_url = value +} +// SetMessage sets the message property value. The message property +func (m *ItemItemRepo403Error) SetMessage(value *string)() { + m.message = value +} +type ItemItemRepo403Errorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDocumentationUrl()(*string) + GetMessage()(*string) + SetDocumentationUrl(value *string)() + SetMessage(value *string)() +} diff --git a/pkg/github/repos/item_item_repo_patch_request_body.go b/pkg/github/repos/item_item_repo_patch_request_body.go new file mode 100644 index 00000000..666113eb --- /dev/null +++ b/pkg/github/repos/item_item_repo_patch_request_body.go @@ -0,0 +1,634 @@ +package repos + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ItemItemRepoPatchRequestBody struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. + allow_auto_merge *bool + // Either `true` to allow private forks, or `false` to prevent private forks. + allow_forking *bool + // Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + allow_merge_commit *bool + // Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + allow_rebase_merge *bool + // Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + allow_squash_merge *bool + // Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. + allow_update_branch *bool + // Whether to archive this repository. `false` will unarchive a previously archived repository. + archived *bool + // Updates the default branch for this repository. + default_branch *string + // Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + delete_branch_on_merge *bool + // A short description of the repository. + description *string + // Either `true` to enable issues for this repository or `false` to disable them. + has_issues *bool + // Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. + has_projects *bool + // Either `true` to enable the wiki for this repository or `false` to disable it. + has_wiki *bool + // A URL with more information about the repository. + homepage *string + // Either `true` to make this repo available as a template repository or `false` to prevent it. + is_template *bool + // The name of the repository. + name *string + // Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. + private *bool + // Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + security_and_analysis ItemItemRepoPatchRequestBody_security_and_analysisable + // Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + // Deprecated: + use_squash_pr_title_as_default *bool + // Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. + web_commit_signoff_required *bool +} +// NewItemItemRepoPatchRequestBody instantiates a new ItemItemRepoPatchRequestBody and sets the default values. +func NewItemItemRepoPatchRequestBody()(*ItemItemRepoPatchRequestBody) { + m := &ItemItemRepoPatchRequestBody{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemRepoPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemRepoPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemRepoPatchRequestBody(), 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 *ItemItemRepoPatchRequestBody) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAllowAutoMerge gets the allow_auto_merge property value. Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetAllowAutoMerge()(*bool) { + return m.allow_auto_merge +} +// GetAllowForking gets the allow_forking property value. Either `true` to allow private forks, or `false` to prevent private forks. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetAllowForking()(*bool) { + return m.allow_forking +} +// GetAllowMergeCommit gets the allow_merge_commit property value. Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetAllowMergeCommit()(*bool) { + return m.allow_merge_commit +} +// GetAllowRebaseMerge gets the allow_rebase_merge property value. Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetAllowRebaseMerge()(*bool) { + return m.allow_rebase_merge +} +// GetAllowSquashMerge gets the allow_squash_merge property value. Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetAllowSquashMerge()(*bool) { + return m.allow_squash_merge +} +// GetAllowUpdateBranch gets the allow_update_branch property value. Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetAllowUpdateBranch()(*bool) { + return m.allow_update_branch +} +// GetArchived gets the archived property value. Whether to archive this repository. `false` will unarchive a previously archived repository. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetArchived()(*bool) { + return m.archived +} +// GetDefaultBranch gets the default_branch property value. Updates the default branch for this repository. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody) GetDefaultBranch()(*string) { + return m.default_branch +} +// GetDeleteBranchOnMerge gets the delete_branch_on_merge property value. Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetDeleteBranchOnMerge()(*bool) { + return m.delete_branch_on_merge +} +// GetDescription gets the description property value. A short description of the repository. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemRepoPatchRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["allow_auto_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowAutoMerge(val) + } + return nil + } + res["allow_forking"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowForking(val) + } + return nil + } + res["allow_merge_commit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowMergeCommit(val) + } + return nil + } + res["allow_rebase_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowRebaseMerge(val) + } + return nil + } + res["allow_squash_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowSquashMerge(val) + } + return nil + } + res["allow_update_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowUpdateBranch(val) + } + return nil + } + res["archived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetArchived(val) + } + return nil + } + res["default_branch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDefaultBranch(val) + } + return nil + } + res["delete_branch_on_merge"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetDeleteBranchOnMerge(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["has_issues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasIssues(val) + } + return nil + } + res["has_projects"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasProjects(val) + } + return nil + } + res["has_wiki"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasWiki(val) + } + return nil + } + res["homepage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHomepage(val) + } + return nil + } + res["is_template"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsTemplate(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["private"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivate(val) + } + return nil + } + res["security_and_analysis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemItemRepoPatchRequestBody_security_and_analysisFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecurityAndAnalysis(val.(ItemItemRepoPatchRequestBody_security_and_analysisable)) + } + return nil + } + res["use_squash_pr_title_as_default"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetUseSquashPrTitleAsDefault(val) + } + return nil + } + res["web_commit_signoff_required"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetWebCommitSignoffRequired(val) + } + return nil + } + return res +} +// GetHasIssues gets the has_issues property value. Either `true` to enable issues for this repository or `false` to disable them. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetHasIssues()(*bool) { + return m.has_issues +} +// GetHasProjects gets the has_projects property value. Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetHasProjects()(*bool) { + return m.has_projects +} +// GetHasWiki gets the has_wiki property value. Either `true` to enable the wiki for this repository or `false` to disable it. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetHasWiki()(*bool) { + return m.has_wiki +} +// GetHomepage gets the homepage property value. A URL with more information about the repository. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody) GetHomepage()(*string) { + return m.homepage +} +// GetIsTemplate gets the is_template property value. Either `true` to make this repo available as a template repository or `false` to prevent it. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetIsTemplate()(*bool) { + return m.is_template +} +// GetName gets the name property value. The name of the repository. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody) GetName()(*string) { + return m.name +} +// GetPrivate gets the private property value. Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetPrivate()(*bool) { + return m.private +} +// GetSecurityAndAnalysis gets the security_and_analysis property value. Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. +// returns a ItemItemRepoPatchRequestBody_security_and_analysisable when successful +func (m *ItemItemRepoPatchRequestBody) GetSecurityAndAnalysis()(ItemItemRepoPatchRequestBody_security_and_analysisable) { + return m.security_and_analysis +} +// GetUseSquashPrTitleAsDefault gets the use_squash_pr_title_as_default property value. Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. +// Deprecated: +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetUseSquashPrTitleAsDefault()(*bool) { + return m.use_squash_pr_title_as_default +} +// GetWebCommitSignoffRequired gets the web_commit_signoff_required property value. Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. +// returns a *bool when successful +func (m *ItemItemRepoPatchRequestBody) GetWebCommitSignoffRequired()(*bool) { + return m.web_commit_signoff_required +} +// Serialize serializes information the current object +func (m *ItemItemRepoPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("allow_auto_merge", m.GetAllowAutoMerge()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("allow_forking", m.GetAllowForking()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("allow_merge_commit", m.GetAllowMergeCommit()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("allow_rebase_merge", m.GetAllowRebaseMerge()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("allow_squash_merge", m.GetAllowSquashMerge()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("allow_update_branch", m.GetAllowUpdateBranch()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("archived", m.GetArchived()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("default_branch", m.GetDefaultBranch()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("delete_branch_on_merge", m.GetDeleteBranchOnMerge()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("has_issues", m.GetHasIssues()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("has_projects", m.GetHasProjects()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("has_wiki", m.GetHasWiki()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("homepage", m.GetHomepage()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("is_template", m.GetIsTemplate()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("private", m.GetPrivate()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("security_and_analysis", m.GetSecurityAndAnalysis()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("use_squash_pr_title_as_default", m.GetUseSquashPrTitleAsDefault()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("web_commit_signoff_required", m.GetWebCommitSignoffRequired()) + 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 *ItemItemRepoPatchRequestBody) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAllowAutoMerge sets the allow_auto_merge property value. Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. +func (m *ItemItemRepoPatchRequestBody) SetAllowAutoMerge(value *bool)() { + m.allow_auto_merge = value +} +// SetAllowForking sets the allow_forking property value. Either `true` to allow private forks, or `false` to prevent private forks. +func (m *ItemItemRepoPatchRequestBody) SetAllowForking(value *bool)() { + m.allow_forking = value +} +// SetAllowMergeCommit sets the allow_merge_commit property value. Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. +func (m *ItemItemRepoPatchRequestBody) SetAllowMergeCommit(value *bool)() { + m.allow_merge_commit = value +} +// SetAllowRebaseMerge sets the allow_rebase_merge property value. Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. +func (m *ItemItemRepoPatchRequestBody) SetAllowRebaseMerge(value *bool)() { + m.allow_rebase_merge = value +} +// SetAllowSquashMerge sets the allow_squash_merge property value. Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. +func (m *ItemItemRepoPatchRequestBody) SetAllowSquashMerge(value *bool)() { + m.allow_squash_merge = value +} +// SetAllowUpdateBranch sets the allow_update_branch property value. Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. +func (m *ItemItemRepoPatchRequestBody) SetAllowUpdateBranch(value *bool)() { + m.allow_update_branch = value +} +// SetArchived sets the archived property value. Whether to archive this repository. `false` will unarchive a previously archived repository. +func (m *ItemItemRepoPatchRequestBody) SetArchived(value *bool)() { + m.archived = value +} +// SetDefaultBranch sets the default_branch property value. Updates the default branch for this repository. +func (m *ItemItemRepoPatchRequestBody) SetDefaultBranch(value *string)() { + m.default_branch = value +} +// SetDeleteBranchOnMerge sets the delete_branch_on_merge property value. Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. +func (m *ItemItemRepoPatchRequestBody) SetDeleteBranchOnMerge(value *bool)() { + m.delete_branch_on_merge = value +} +// SetDescription sets the description property value. A short description of the repository. +func (m *ItemItemRepoPatchRequestBody) SetDescription(value *string)() { + m.description = value +} +// SetHasIssues sets the has_issues property value. Either `true` to enable issues for this repository or `false` to disable them. +func (m *ItemItemRepoPatchRequestBody) SetHasIssues(value *bool)() { + m.has_issues = value +} +// SetHasProjects sets the has_projects property value. Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. +func (m *ItemItemRepoPatchRequestBody) SetHasProjects(value *bool)() { + m.has_projects = value +} +// SetHasWiki sets the has_wiki property value. Either `true` to enable the wiki for this repository or `false` to disable it. +func (m *ItemItemRepoPatchRequestBody) SetHasWiki(value *bool)() { + m.has_wiki = value +} +// SetHomepage sets the homepage property value. A URL with more information about the repository. +func (m *ItemItemRepoPatchRequestBody) SetHomepage(value *string)() { + m.homepage = value +} +// SetIsTemplate sets the is_template property value. Either `true` to make this repo available as a template repository or `false` to prevent it. +func (m *ItemItemRepoPatchRequestBody) SetIsTemplate(value *bool)() { + m.is_template = value +} +// SetName sets the name property value. The name of the repository. +func (m *ItemItemRepoPatchRequestBody) SetName(value *string)() { + m.name = value +} +// SetPrivate sets the private property value. Either `true` to make the repository private or `false` to make it public. Default: `false`. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. +func (m *ItemItemRepoPatchRequestBody) SetPrivate(value *bool)() { + m.private = value +} +// SetSecurityAndAnalysis sets the security_and_analysis property value. Specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. +func (m *ItemItemRepoPatchRequestBody) SetSecurityAndAnalysis(value ItemItemRepoPatchRequestBody_security_and_analysisable)() { + m.security_and_analysis = value +} +// SetUseSquashPrTitleAsDefault sets the use_squash_pr_title_as_default property value. Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. +// Deprecated: +func (m *ItemItemRepoPatchRequestBody) SetUseSquashPrTitleAsDefault(value *bool)() { + m.use_squash_pr_title_as_default = value +} +// SetWebCommitSignoffRequired sets the web_commit_signoff_required property value. Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits. +func (m *ItemItemRepoPatchRequestBody) SetWebCommitSignoffRequired(value *bool)() { + m.web_commit_signoff_required = value +} +type ItemItemRepoPatchRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowAutoMerge()(*bool) + GetAllowForking()(*bool) + GetAllowMergeCommit()(*bool) + GetAllowRebaseMerge()(*bool) + GetAllowSquashMerge()(*bool) + GetAllowUpdateBranch()(*bool) + GetArchived()(*bool) + GetDefaultBranch()(*string) + GetDeleteBranchOnMerge()(*bool) + GetDescription()(*string) + GetHasIssues()(*bool) + GetHasProjects()(*bool) + GetHasWiki()(*bool) + GetHomepage()(*string) + GetIsTemplate()(*bool) + GetName()(*string) + GetPrivate()(*bool) + GetSecurityAndAnalysis()(ItemItemRepoPatchRequestBody_security_and_analysisable) + GetUseSquashPrTitleAsDefault()(*bool) + GetWebCommitSignoffRequired()(*bool) + SetAllowAutoMerge(value *bool)() + SetAllowForking(value *bool)() + SetAllowMergeCommit(value *bool)() + SetAllowRebaseMerge(value *bool)() + SetAllowSquashMerge(value *bool)() + SetAllowUpdateBranch(value *bool)() + SetArchived(value *bool)() + SetDefaultBranch(value *string)() + SetDeleteBranchOnMerge(value *bool)() + SetDescription(value *string)() + SetHasIssues(value *bool)() + SetHasProjects(value *bool)() + SetHasWiki(value *bool)() + SetHomepage(value *string)() + SetIsTemplate(value *bool)() + SetName(value *string)() + SetPrivate(value *bool)() + SetSecurityAndAnalysis(value ItemItemRepoPatchRequestBody_security_and_analysisable)() + SetUseSquashPrTitleAsDefault(value *bool)() + SetWebCommitSignoffRequired(value *bool)() +} diff --git a/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis.go b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis.go new file mode 100644 index 00000000..d5b32b37 --- /dev/null +++ b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis.go @@ -0,0 +1,139 @@ +package repos + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ItemItemRepoPatchRequestBody_security_and_analysis specify which security and analysis features to enable or disable for the repository.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. +type ItemItemRepoPatchRequestBody_security_and_analysis struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." + advanced_security ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable + // Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." + secret_scanning ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable + // Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." + secret_scanning_push_protection ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable +} +// NewItemItemRepoPatchRequestBody_security_and_analysis instantiates a new ItemItemRepoPatchRequestBody_security_and_analysis and sets the default values. +func NewItemItemRepoPatchRequestBody_security_and_analysis()(*ItemItemRepoPatchRequestBody_security_and_analysis) { + m := &ItemItemRepoPatchRequestBody_security_and_analysis{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemRepoPatchRequestBody_security_and_analysisFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemRepoPatchRequestBody_security_and_analysisFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemRepoPatchRequestBody_security_and_analysis(), 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 *ItemItemRepoPatchRequestBody_security_and_analysis) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAdvancedSecurity gets the advanced_security property value. Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." +// returns a ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) GetAdvancedSecurity()(ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable) { + return m.advanced_security +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["advanced_security"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAdvancedSecurity(val.(ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable)) + } + return nil + } + res["secret_scanning"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecretScanning(val.(ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable)) + } + return nil + } + res["secret_scanning_push_protection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSecretScanningPushProtection(val.(ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)) + } + return nil + } + return res +} +// GetSecretScanning gets the secret_scanning property value. Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." +// returns a ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) GetSecretScanning()(ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable) { + return m.secret_scanning +} +// GetSecretScanningPushProtection gets the secret_scanning_push_protection property value. Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." +// returns a ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) GetSecretScanningPushProtection()(ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable) { + return m.secret_scanning_push_protection +} +// Serialize serializes information the current object +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("advanced_security", m.GetAdvancedSecurity()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret_scanning", m.GetSecretScanning()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("secret_scanning_push_protection", m.GetSecretScanningPushProtection()) + 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 *ItemItemRepoPatchRequestBody_security_and_analysis) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAdvancedSecurity sets the advanced_security property value. Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) SetAdvancedSecurity(value ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable)() { + m.advanced_security = value +} +// SetSecretScanning sets the secret_scanning property value. Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) SetSecretScanning(value ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable)() { + m.secret_scanning = value +} +// SetSecretScanningPushProtection sets the secret_scanning_push_protection property value. Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." +func (m *ItemItemRepoPatchRequestBody_security_and_analysis) SetSecretScanningPushProtection(value ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)() { + m.secret_scanning_push_protection = value +} +type ItemItemRepoPatchRequestBody_security_and_analysisable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdvancedSecurity()(ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable) + GetSecretScanning()(ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable) + GetSecretScanningPushProtection()(ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable) + SetAdvancedSecurity(value ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable)() + SetSecretScanning(value ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable)() + SetSecretScanningPushProtection(value ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable)() +} diff --git a/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_advanced_security.go b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_advanced_security.go new file mode 100644 index 00000000..064955b3 --- /dev/null +++ b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_advanced_security.go @@ -0,0 +1,81 @@ +package repos + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." +type ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Can be `enabled` or `disabled`. + status *string +} +// NewItemItemRepoPatchRequestBody_security_and_analysis_advanced_security instantiates a new ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security and sets the default values. +func NewItemItemRepoPatchRequestBody_security_and_analysis_advanced_security()(*ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) { + m := &ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemRepoPatchRequestBody_security_and_analysis_advanced_security(), 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 *ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + return res +} +// GetStatus gets the status property value. Can be `enabled` or `disabled`. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) GetStatus()(*string) { + return m.status +} +// Serialize serializes information the current object +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("status", m.GetStatus()) + 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 *ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetStatus sets the status property value. Can be `enabled` or `disabled`. +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_advanced_security) SetStatus(value *string)() { + m.status = value +} +type ItemItemRepoPatchRequestBody_security_and_analysis_advanced_securityable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetStatus()(*string) + SetStatus(value *string)() +} diff --git a/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_secret_scanning.go b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_secret_scanning.go new file mode 100644 index 00000000..e12b9ac9 --- /dev/null +++ b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_secret_scanning.go @@ -0,0 +1,81 @@ +package repos + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." +type ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Can be `enabled` or `disabled`. + status *string +} +// NewItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning instantiates a new ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning and sets the default values. +func NewItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning()(*ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) { + m := &ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning(), 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 *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + return res +} +// GetStatus gets the status property value. Can be `enabled` or `disabled`. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) GetStatus()(*string) { + return m.status +} +// Serialize serializes information the current object +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("status", m.GetStatus()) + 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 *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetStatus sets the status property value. Can be `enabled` or `disabled`. +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning) SetStatus(value *string)() { + m.status = value +} +type ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanningable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetStatus()(*string) + SetStatus(value *string)() +} diff --git a/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go new file mode 100644 index 00000000..da569ebf --- /dev/null +++ b/pkg/github/repos/item_item_repo_patch_request_body_security_and_analysis_secret_scanning_push_protection.go @@ -0,0 +1,81 @@ +package repos + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." +type ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // Can be `enabled` or `disabled`. + status *string +} +// NewItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection instantiates a new ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection and sets the default values. +func NewItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection()(*ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) { + m := &ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection(), 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 *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + return res +} +// GetStatus gets the status property value. Can be `enabled` or `disabled`. +// returns a *string when successful +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) GetStatus()(*string) { + return m.status +} +// Serialize serializes information the current object +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("status", m.GetStatus()) + 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 *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetStatus sets the status property value. Can be `enabled` or `disabled`. +func (m *ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection) SetStatus(value *string)() { + m.status = value +} +type ItemItemRepoPatchRequestBody_security_and_analysis_secret_scanning_push_protectionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetStatus()(*string) + SetStatus(value *string)() +} diff --git a/pkg/github/repos/item_item_rules_branches_request_builder.go b/pkg/github/repos/item_item_rules_branches_request_builder.go index dd078d57..250a5a69 100644 --- a/pkg/github/repos/item_item_rules_branches_request_builder.go +++ b/pkg/github/repos/item_item_rules_branches_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemRulesBranchesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rules\branches +// ItemItemRulesBranchesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rules\branches type ItemItemRulesBranchesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemRulesBranchesRequestBuilder) ByBranch(branch string)(*ItemItemR // NewItemItemRulesBranchesRequestBuilderInternal instantiates a new ItemItemRulesBranchesRequestBuilder and sets the default values. func NewItemItemRulesBranchesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesBranchesRequestBuilder) { m := &ItemItemRulesBranchesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rules/branches", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rules/branches", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_rules_branches_with_branch_item_request_builder.go b/pkg/github/repos/item_item_rules_branches_with_branch_item_request_builder.go index 12cc64d8..c3ce8999 100644 --- a/pkg/github/repos/item_item_rules_branches_with_branch_item_request_builder.go +++ b/pkg/github/repos/item_item_rules_branches_with_branch_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemRulesBranchesWithBranchItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rules\branches\{branch} +// ItemItemRulesBranchesWithBranchItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rules\branches\{branch} type ItemItemRulesBranchesWithBranchItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemRulesBranchesWithBranchItemRequestBuilderGetQueryParameters struct // NewItemItemRulesBranchesWithBranchItemRequestBuilderInternal instantiates a new ItemItemRulesBranchesWithBranchItemRequestBuilder and sets the default values. func NewItemItemRulesBranchesWithBranchItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesBranchesWithBranchItemRequestBuilder) { m := &ItemItemRulesBranchesWithBranchItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rules/branches/{branch}{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rules/branches/{branch}{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_rules_request_builder.go b/pkg/github/repos/item_item_rules_request_builder.go index 7c323d94..7630fade 100644 --- a/pkg/github/repos/item_item_rules_request_builder.go +++ b/pkg/github/repos/item_item_rules_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemRulesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rules +// ItemItemRulesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rules type ItemItemRulesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -16,7 +16,7 @@ func (m *ItemItemRulesRequestBuilder) Branches()(*ItemItemRulesBranchesRequestBu // NewItemItemRulesRequestBuilderInternal instantiates a new ItemItemRulesRequestBuilder and sets the default values. func NewItemItemRulesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesRequestBuilder) { m := &ItemItemRulesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rules", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rules", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_rulesets_request_builder.go b/pkg/github/repos/item_item_rulesets_request_builder.go index 696fb950..3229726e 100644 --- a/pkg/github/repos/item_item_rulesets_request_builder.go +++ b/pkg/github/repos/item_item_rulesets_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemRulesetsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rulesets +// ItemItemRulesetsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rulesets type ItemItemRulesetsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -33,7 +33,7 @@ func (m *ItemItemRulesetsRequestBuilder) ByRuleset_id(ruleset_id int32)(*ItemIte // NewItemItemRulesetsRequestBuilderInternal instantiates a new ItemItemRulesetsRequestBuilder and sets the default values. func NewItemItemRulesetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesetsRequestBuilder) { m := &ItemItemRulesetsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets{?includes_parents*,page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets{?includes_parents*,page*,per_page*}", pathParameters), } return m } @@ -112,7 +112,7 @@ func (m *ItemItemRulesetsRequestBuilder) ToGetRequestInformation(ctx context.Con // ToPostRequestInformation create a ruleset for a repository. // returns a *RequestInformation when successful func (m *ItemItemRulesetsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemRulesetsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go b/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go index 9f6e93ad..e21283c4 100644 --- a/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go +++ b/pkg/github/repos/item_item_rulesets_rule_suites_request_builder.go @@ -8,7 +8,7 @@ import ( i49541909782daeed2b70c270599a2d0c588ee37e976ebe46c3c799c2e46d3043 "github.com/octokit/go-sdk/pkg/github/repos/item/item/rulesets/rulesuites" ) -// ItemItemRulesetsRuleSuitesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rulesets\rule-suites +// ItemItemRulesetsRuleSuitesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rulesets\rule-suites type ItemItemRulesetsRuleSuitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -40,7 +40,7 @@ func (m *ItemItemRulesetsRuleSuitesRequestBuilder) ByRule_suite_id(rule_suite_id // NewItemItemRulesetsRuleSuitesRequestBuilderInternal instantiates a new ItemItemRulesetsRuleSuitesRequestBuilder and sets the default values. func NewItemItemRulesetsRuleSuitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesetsRuleSuitesRequestBuilder) { m := &ItemItemRulesetsRuleSuitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets/rule-suites{?actor_name*,page*,per_page*,ref*,rule_suite_result*,time_period*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets/rule-suites{?actor_name*,page*,per_page*,ref*,rule_suite_result*,time_period*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_rulesets_rule_suites_with_rule_suite_item_request_builder.go b/pkg/github/repos/item_item_rulesets_rule_suites_with_rule_suite_item_request_builder.go index 010407c2..cd340529 100644 --- a/pkg/github/repos/item_item_rulesets_rule_suites_with_rule_suite_item_request_builder.go +++ b/pkg/github/repos/item_item_rulesets_rule_suites_with_rule_suite_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rulesets\rule-suites\{rule_suite_id} +// ItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rulesets\rule-suites\{rule_suite_id} type ItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilderInternal instantiates a new ItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilder and sets the default values. func NewItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilder) { m := &ItemItemRulesetsRuleSuitesWithRule_suite_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets/rule-suites/{rule_suite_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets/rule-suites/{rule_suite_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_rulesets_with_ruleset_item_request_builder.go b/pkg/github/repos/item_item_rulesets_with_ruleset_item_request_builder.go index bf0debb7..c1592832 100644 --- a/pkg/github/repos/item_item_rulesets_with_ruleset_item_request_builder.go +++ b/pkg/github/repos/item_item_rulesets_with_ruleset_item_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemRulesetsWithRuleset_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\rulesets\{ruleset_id} +// ItemItemRulesetsWithRuleset_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\rulesets\{ruleset_id} type ItemItemRulesetsWithRuleset_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -18,7 +18,7 @@ type ItemItemRulesetsWithRuleset_ItemRequestBuilderGetQueryParameters struct { // NewItemItemRulesetsWithRuleset_ItemRequestBuilderInternal instantiates a new ItemItemRulesetsWithRuleset_ItemRequestBuilder and sets the default values. func NewItemItemRulesetsWithRuleset_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesetsWithRuleset_ItemRequestBuilder) { m := &ItemItemRulesetsWithRuleset_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets/{ruleset_id}{?includes_parents*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets/{ruleset_id}{?includes_parents*}", pathParameters), } return m } @@ -102,7 +102,7 @@ func (m *ItemItemRulesetsWithRuleset_ItemRequestBuilder) Put(ctx context.Context // ToDeleteRequestInformation delete a ruleset for a repository. // returns a *RequestInformation when successful func (m *ItemItemRulesetsWithRuleset_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets/{ruleset_id}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets/{ruleset_id}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil @@ -118,7 +118,7 @@ func (m *ItemItemRulesetsWithRuleset_ItemRequestBuilder) ToGetRequestInformation // ToPutRequestInformation update a ruleset for a repository. // returns a *RequestInformation when successful func (m *ItemItemRulesetsWithRuleset_ItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemItemRulesetsItemWithRuleset_PutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/rulesets/{ruleset_id}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets/{ruleset_id}", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_secret_scanning_alerts_item_locations_request_builder.go b/pkg/github/repos/item_item_secret_scanning_alerts_item_locations_request_builder.go index 70bbc260..59919ca5 100644 --- a/pkg/github/repos/item_item_secret_scanning_alerts_item_locations_request_builder.go +++ b/pkg/github/repos/item_item_secret_scanning_alerts_item_locations_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSecretScanningAlertsItemLocationsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\secret-scanning\alerts\{alert_number}\locations +// ItemItemSecretScanningAlertsItemLocationsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\secret-scanning\alerts\{alert_number}\locations type ItemItemSecretScanningAlertsItemLocationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemSecretScanningAlertsItemLocationsRequestBuilderGetQueryParameters s // NewItemItemSecretScanningAlertsItemLocationsRequestBuilderInternal instantiates a new ItemItemSecretScanningAlertsItemLocationsRequestBuilder and sets the default values. func NewItemItemSecretScanningAlertsItemLocationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecretScanningAlertsItemLocationsRequestBuilder) { m := &ItemItemSecretScanningAlertsItemLocationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/secret-scanning/alerts/{alert_number}/locations{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts/{alert_number}/locations{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_secret_scanning_alerts_request_builder.go b/pkg/github/repos/item_item_secret_scanning_alerts_request_builder.go index 3e7c1931..fb31cd22 100644 --- a/pkg/github/repos/item_item_secret_scanning_alerts_request_builder.go +++ b/pkg/github/repos/item_item_secret_scanning_alerts_request_builder.go @@ -8,7 +8,7 @@ import ( ifed8ddc03e7fae238df937128818f42535837e18e6b784c23db9ad03bec21683 "github.com/octokit/go-sdk/pkg/github/repos/item/item/secretscanning/alerts" ) -// ItemItemSecretScanningAlertsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\secret-scanning\alerts +// ItemItemSecretScanningAlertsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\secret-scanning\alerts type ItemItemSecretScanningAlertsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -48,7 +48,7 @@ func (m *ItemItemSecretScanningAlertsRequestBuilder) ByAlert_number(alert_number // NewItemItemSecretScanningAlertsRequestBuilderInternal instantiates a new ItemItemSecretScanningAlertsRequestBuilder and sets the default values. func NewItemItemSecretScanningAlertsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecretScanningAlertsRequestBuilder) { m := &ItemItemSecretScanningAlertsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/secret-scanning/alerts{?after*,before*,direction*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts{?after*,before*,direction*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_secret_scanning_alerts_with_alert_number_item_request_builder.go b/pkg/github/repos/item_item_secret_scanning_alerts_with_alert_number_item_request_builder.go index a9c629ec..bd0c75ec 100644 --- a/pkg/github/repos/item_item_secret_scanning_alerts_with_alert_number_item_request_builder.go +++ b/pkg/github/repos/item_item_secret_scanning_alerts_with_alert_number_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\secret-scanning\alerts\{alert_number} +// ItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\secret-scanning\alerts\{alert_number} type ItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilderInternal instantiates a new ItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilder and sets the default values. func NewItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilder) { m := &ItemItemSecretScanningAlertsWithAlert_numberItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/secret-scanning/alerts/{alert_number}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts/{alert_number}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_secret_scanning_request_builder.go b/pkg/github/repos/item_item_secret_scanning_request_builder.go index 978c2ac5..6231e771 100644 --- a/pkg/github/repos/item_item_secret_scanning_request_builder.go +++ b/pkg/github/repos/item_item_secret_scanning_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemSecretScanningRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\secret-scanning +// ItemItemSecretScanningRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\secret-scanning type ItemItemSecretScanningRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -16,7 +16,7 @@ func (m *ItemItemSecretScanningRequestBuilder) Alerts()(*ItemItemSecretScanningA // NewItemItemSecretScanningRequestBuilderInternal instantiates a new ItemItemSecretScanningRequestBuilder and sets the default values. func NewItemItemSecretScanningRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecretScanningRequestBuilder) { m := &ItemItemSecretScanningRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/secret-scanning", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_security_advisories_item_cve_request_builder.go b/pkg/github/repos/item_item_security_advisories_item_cve_request_builder.go index 20585af7..80358801 100644 --- a/pkg/github/repos/item_item_security_advisories_item_cve_request_builder.go +++ b/pkg/github/repos/item_item_security_advisories_item_cve_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSecurityAdvisoriesItemCveRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\security-advisories\{ghsa_id}\cve +// ItemItemSecurityAdvisoriesItemCveRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\security-advisories\{ghsa_id}\cve type ItemItemSecurityAdvisoriesItemCveRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemSecurityAdvisoriesItemCveRequestBuilderInternal instantiates a new ItemItemSecurityAdvisoriesItemCveRequestBuilder and sets the default values. func NewItemItemSecurityAdvisoriesItemCveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecurityAdvisoriesItemCveRequestBuilder) { m := &ItemItemSecurityAdvisoriesItemCveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/security-advisories/{ghsa_id}/cve", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/security-advisories/{ghsa_id}/cve", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_security_advisories_item_forks_request_builder.go b/pkg/github/repos/item_item_security_advisories_item_forks_request_builder.go index 08a32896..bd49b80e 100644 --- a/pkg/github/repos/item_item_security_advisories_item_forks_request_builder.go +++ b/pkg/github/repos/item_item_security_advisories_item_forks_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSecurityAdvisoriesItemForksRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\security-advisories\{ghsa_id}\forks +// ItemItemSecurityAdvisoriesItemForksRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\security-advisories\{ghsa_id}\forks type ItemItemSecurityAdvisoriesItemForksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemSecurityAdvisoriesItemForksRequestBuilderInternal instantiates a new ItemItemSecurityAdvisoriesItemForksRequestBuilder and sets the default values. func NewItemItemSecurityAdvisoriesItemForksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecurityAdvisoriesItemForksRequestBuilder) { m := &ItemItemSecurityAdvisoriesItemForksRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/security-advisories/{ghsa_id}/forks", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/security-advisories/{ghsa_id}/forks", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_security_advisories_reports_request_builder.go b/pkg/github/repos/item_item_security_advisories_reports_request_builder.go index 602b5ccf..b02ff0c0 100644 --- a/pkg/github/repos/item_item_security_advisories_reports_request_builder.go +++ b/pkg/github/repos/item_item_security_advisories_reports_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSecurityAdvisoriesReportsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\security-advisories\reports +// ItemItemSecurityAdvisoriesReportsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\security-advisories\reports type ItemItemSecurityAdvisoriesReportsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemSecurityAdvisoriesReportsRequestBuilderInternal instantiates a new ItemItemSecurityAdvisoriesReportsRequestBuilder and sets the default values. func NewItemItemSecurityAdvisoriesReportsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecurityAdvisoriesReportsRequestBuilder) { m := &ItemItemSecurityAdvisoriesReportsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/security-advisories/reports", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/security-advisories/reports", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_security_advisories_request_builder.go b/pkg/github/repos/item_item_security_advisories_request_builder.go index b46856a4..fbc59370 100644 --- a/pkg/github/repos/item_item_security_advisories_request_builder.go +++ b/pkg/github/repos/item_item_security_advisories_request_builder.go @@ -7,7 +7,7 @@ import ( iff82c0f4e094aa05a6584f444513221550be88a33dff983b75f25640827f7406 "github.com/octokit/go-sdk/pkg/github/repos/item/item/securityadvisories" ) -// ItemItemSecurityAdvisoriesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\security-advisories +// ItemItemSecurityAdvisoriesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\security-advisories type ItemItemSecurityAdvisoriesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -41,7 +41,7 @@ func (m *ItemItemSecurityAdvisoriesRequestBuilder) ByGhsa_id(ghsa_id string)(*It // NewItemItemSecurityAdvisoriesRequestBuilderInternal instantiates a new ItemItemSecurityAdvisoriesRequestBuilder and sets the default values. func NewItemItemSecurityAdvisoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecurityAdvisoriesRequestBuilder) { m := &ItemItemSecurityAdvisoriesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/security-advisories{?after*,before*,direction*,per_page*,sort*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/security-advisories{?after*,before*,direction*,per_page*,sort*,state*}", pathParameters), } return m } @@ -122,7 +122,7 @@ func (m *ItemItemSecurityAdvisoriesRequestBuilder) ToGetRequestInformation(ctx c // ToPostRequestInformation creates a new repository security advisory.In order to create a draft repository security advisory, the authenticated user must be a security manager or administrator of that repository.OAuth app tokens and personal access tokens (classic) need the `repo` or `repository_advisories:write` scope to use this endpoint. // returns a *RequestInformation when successful func (m *ItemItemSecurityAdvisoriesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.RepositoryAdvisoryCreateable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/security-advisories", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/security-advisories", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_security_advisories_with_ghsa_item_request_builder.go b/pkg/github/repos/item_item_security_advisories_with_ghsa_item_request_builder.go index 8f0dbe3a..82c0b70c 100644 --- a/pkg/github/repos/item_item_security_advisories_with_ghsa_item_request_builder.go +++ b/pkg/github/repos/item_item_security_advisories_with_ghsa_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\security-advisories\{ghsa_id} +// ItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\security-advisories\{ghsa_id} type ItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilderInternal instantiates a new ItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilder and sets the default values. func NewItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilder) { m := &ItemItemSecurityAdvisoriesWithGhsa_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/security-advisories/{ghsa_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/security-advisories/{ghsa_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stargazers_request_builder.go b/pkg/github/repos/item_item_stargazers_request_builder.go index 86b36c8c..13eb45fe 100644 --- a/pkg/github/repos/item_item_stargazers_request_builder.go +++ b/pkg/github/repos/item_item_stargazers_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemStargazersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stargazers +// ItemItemStargazersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stargazers type ItemItemStargazersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -127,7 +127,7 @@ type StargazersGetResponseable interface { // NewItemItemStargazersRequestBuilderInternal instantiates a new ItemItemStargazersRequestBuilder and sets the default values. func NewItemItemStargazersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStargazersRequestBuilder) { m := &ItemItemStargazersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stargazers{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stargazers{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stats_code_frequency_request_builder.go b/pkg/github/repos/item_item_stats_code_frequency_request_builder.go index 323ae21d..0adef0d7 100644 --- a/pkg/github/repos/item_item_stats_code_frequency_request_builder.go +++ b/pkg/github/repos/item_item_stats_code_frequency_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemStatsCode_frequencyRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stats\code_frequency +// ItemItemStatsCode_frequencyRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stats\code_frequency type ItemItemStatsCode_frequencyRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemStatsCode_frequencyRequestBuilderInternal instantiates a new ItemItemStatsCode_frequencyRequestBuilder and sets the default values. func NewItemItemStatsCode_frequencyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatsCode_frequencyRequestBuilder) { m := &ItemItemStatsCode_frequencyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stats/code_frequency", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stats/code_frequency", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stats_commit_activity_request_builder.go b/pkg/github/repos/item_item_stats_commit_activity_request_builder.go index c26d8433..c8a4879c 100644 --- a/pkg/github/repos/item_item_stats_commit_activity_request_builder.go +++ b/pkg/github/repos/item_item_stats_commit_activity_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemStatsCommit_activityRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stats\commit_activity +// ItemItemStatsCommit_activityRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stats\commit_activity type ItemItemStatsCommit_activityRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemStatsCommit_activityRequestBuilderInternal instantiates a new ItemItemStatsCommit_activityRequestBuilder and sets the default values. func NewItemItemStatsCommit_activityRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatsCommit_activityRequestBuilder) { m := &ItemItemStatsCommit_activityRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stats/commit_activity", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stats/commit_activity", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stats_contributors_request_builder.go b/pkg/github/repos/item_item_stats_contributors_request_builder.go index 6ef5a81e..decf1141 100644 --- a/pkg/github/repos/item_item_stats_contributors_request_builder.go +++ b/pkg/github/repos/item_item_stats_contributors_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemStatsContributorsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stats\contributors +// ItemItemStatsContributorsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stats\contributors type ItemItemStatsContributorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemStatsContributorsRequestBuilderInternal instantiates a new ItemItemStatsContributorsRequestBuilder and sets the default values. func NewItemItemStatsContributorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatsContributorsRequestBuilder) { m := &ItemItemStatsContributorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stats/contributors", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stats/contributors", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stats_participation_request_builder.go b/pkg/github/repos/item_item_stats_participation_request_builder.go index 4981d1c8..c73b8c84 100644 --- a/pkg/github/repos/item_item_stats_participation_request_builder.go +++ b/pkg/github/repos/item_item_stats_participation_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemStatsParticipationRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stats\participation +// ItemItemStatsParticipationRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stats\participation type ItemItemStatsParticipationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemStatsParticipationRequestBuilderInternal instantiates a new ItemItemStatsParticipationRequestBuilder and sets the default values. func NewItemItemStatsParticipationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatsParticipationRequestBuilder) { m := &ItemItemStatsParticipationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stats/participation", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stats/participation", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stats_punch_card_request_builder.go b/pkg/github/repos/item_item_stats_punch_card_request_builder.go index c4446458..c9c2f2fa 100644 --- a/pkg/github/repos/item_item_stats_punch_card_request_builder.go +++ b/pkg/github/repos/item_item_stats_punch_card_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemStatsPunch_cardRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stats\punch_card +// ItemItemStatsPunch_cardRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stats\punch_card type ItemItemStatsPunch_cardRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemStatsPunch_cardRequestBuilderInternal instantiates a new ItemItemStatsPunch_cardRequestBuilder and sets the default values. func NewItemItemStatsPunch_cardRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatsPunch_cardRequestBuilder) { m := &ItemItemStatsPunch_cardRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stats/punch_card", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stats/punch_card", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_stats_request_builder.go b/pkg/github/repos/item_item_stats_request_builder.go index dfe18015..d4f3a3d8 100644 --- a/pkg/github/repos/item_item_stats_request_builder.go +++ b/pkg/github/repos/item_item_stats_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemStatsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\stats +// ItemItemStatsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\stats type ItemItemStatsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -21,7 +21,7 @@ func (m *ItemItemStatsRequestBuilder) Commit_activity()(*ItemItemStatsCommit_act // NewItemItemStatsRequestBuilderInternal instantiates a new ItemItemStatsRequestBuilder and sets the default values. func NewItemItemStatsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatsRequestBuilder) { m := &ItemItemStatsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/stats", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/stats", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_statuses_request_builder.go b/pkg/github/repos/item_item_statuses_request_builder.go index 70d560cf..88d7290b 100644 --- a/pkg/github/repos/item_item_statuses_request_builder.go +++ b/pkg/github/repos/item_item_statuses_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemStatusesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\statuses +// ItemItemStatusesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\statuses type ItemItemStatusesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemStatusesRequestBuilder) BySha(sha string)(*ItemItemStatusesWith // NewItemItemStatusesRequestBuilderInternal instantiates a new ItemItemStatusesRequestBuilder and sets the default values. func NewItemItemStatusesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatusesRequestBuilder) { m := &ItemItemStatusesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/statuses", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/statuses", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_statuses_with_sha_item_request_builder.go b/pkg/github/repos/item_item_statuses_with_sha_item_request_builder.go index 1148d592..f2e80dc7 100644 --- a/pkg/github/repos/item_item_statuses_with_sha_item_request_builder.go +++ b/pkg/github/repos/item_item_statuses_with_sha_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemStatusesWithShaItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\statuses\{sha} +// ItemItemStatusesWithShaItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\statuses\{sha} type ItemItemStatusesWithShaItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemStatusesWithShaItemRequestBuilderInternal instantiates a new ItemItemStatusesWithShaItemRequestBuilder and sets the default values. func NewItemItemStatusesWithShaItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemStatusesWithShaItemRequestBuilder) { m := &ItemItemStatusesWithShaItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/statuses/{sha}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/statuses/{sha}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_subscribers_request_builder.go b/pkg/github/repos/item_item_subscribers_request_builder.go index bdeb0799..78524e4d 100644 --- a/pkg/github/repos/item_item_subscribers_request_builder.go +++ b/pkg/github/repos/item_item_subscribers_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSubscribersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\subscribers +// ItemItemSubscribersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\subscribers type ItemItemSubscribersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemSubscribersRequestBuilderGetQueryParameters struct { // NewItemItemSubscribersRequestBuilderInternal instantiates a new ItemItemSubscribersRequestBuilder and sets the default values. func NewItemItemSubscribersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSubscribersRequestBuilder) { m := &ItemItemSubscribersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/subscribers{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/subscribers{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_subscription_request_builder.go b/pkg/github/repos/item_item_subscription_request_builder.go index 896cfeaa..1272c39c 100644 --- a/pkg/github/repos/item_item_subscription_request_builder.go +++ b/pkg/github/repos/item_item_subscription_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemSubscriptionRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\subscription +// ItemItemSubscriptionRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\subscription type ItemItemSubscriptionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemSubscriptionRequestBuilderInternal instantiates a new ItemItemSubscriptionRequestBuilder and sets the default values. func NewItemItemSubscriptionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemSubscriptionRequestBuilder) { m := &ItemItemSubscriptionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/subscription", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/subscription", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_tags_protection_request_builder.go b/pkg/github/repos/item_item_tags_protection_request_builder.go index 876a7830..a1894843 100644 --- a/pkg/github/repos/item_item_tags_protection_request_builder.go +++ b/pkg/github/repos/item_item_tags_protection_request_builder.go @@ -7,7 +7,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTagsProtectionRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\tags\protection +// ItemItemTagsProtectionRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\tags\protection type ItemItemTagsProtectionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -24,7 +24,7 @@ func (m *ItemItemTagsProtectionRequestBuilder) ByTag_protection_id(tag_protectio // NewItemItemTagsProtectionRequestBuilderInternal instantiates a new ItemItemTagsProtectionRequestBuilder and sets the default values. func NewItemItemTagsProtectionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTagsProtectionRequestBuilder) { m := &ItemItemTagsProtectionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/tags/protection", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/tags/protection", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_tags_protection_with_tag_protection_item_request_builder.go b/pkg/github/repos/item_item_tags_protection_with_tag_protection_item_request_builder.go index 054a646e..6bfc0d61 100644 --- a/pkg/github/repos/item_item_tags_protection_with_tag_protection_item_request_builder.go +++ b/pkg/github/repos/item_item_tags_protection_with_tag_protection_item_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTagsProtectionWithTag_protection_ItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\tags\protection\{tag_protection_id} +// ItemItemTagsProtectionWithTag_protection_ItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\tags\protection\{tag_protection_id} type ItemItemTagsProtectionWithTag_protection_ItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemTagsProtectionWithTag_protection_ItemRequestBuilderInternal instantiates a new ItemItemTagsProtectionWithTag_protection_ItemRequestBuilder and sets the default values. func NewItemItemTagsProtectionWithTag_protection_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTagsProtectionWithTag_protection_ItemRequestBuilder) { m := &ItemItemTagsProtectionWithTag_protection_ItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/tags/protection/{tag_protection_id}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/tags/protection/{tag_protection_id}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_tags_request_builder.go b/pkg/github/repos/item_item_tags_request_builder.go index f7da9909..cb7000d8 100644 --- a/pkg/github/repos/item_item_tags_request_builder.go +++ b/pkg/github/repos/item_item_tags_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTagsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\tags +// ItemItemTagsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\tags type ItemItemTagsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemTagsRequestBuilderGetQueryParameters struct { // NewItemItemTagsRequestBuilderInternal instantiates a new ItemItemTagsRequestBuilder and sets the default values. func NewItemItemTagsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTagsRequestBuilder) { m := &ItemItemTagsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/tags{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/tags{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_tarball_request_builder.go b/pkg/github/repos/item_item_tarball_request_builder.go index 1a6b0757..481912bc 100644 --- a/pkg/github/repos/item_item_tarball_request_builder.go +++ b/pkg/github/repos/item_item_tarball_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemTarballRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\tarball +// ItemItemTarballRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\tarball type ItemItemTarballRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemTarballRequestBuilder) ByRef(ref string)(*ItemItemTarballWithRe // NewItemItemTarballRequestBuilderInternal instantiates a new ItemItemTarballRequestBuilder and sets the default values. func NewItemItemTarballRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTarballRequestBuilder) { m := &ItemItemTarballRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/tarball", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/tarball", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_tarball_with_ref_item_request_builder.go b/pkg/github/repos/item_item_tarball_with_ref_item_request_builder.go index 50c4ad0f..56062578 100644 --- a/pkg/github/repos/item_item_tarball_with_ref_item_request_builder.go +++ b/pkg/github/repos/item_item_tarball_with_ref_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemTarballWithRefItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\tarball\{ref} +// ItemItemTarballWithRefItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\tarball\{ref} type ItemItemTarballWithRefItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemTarballWithRefItemRequestBuilderInternal instantiates a new ItemItemTarballWithRefItemRequestBuilder and sets the default values. func NewItemItemTarballWithRefItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTarballWithRefItemRequestBuilder) { m := &ItemItemTarballWithRefItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/tarball/{ref}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/tarball/{ref}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_teams_request_builder.go b/pkg/github/repos/item_item_teams_request_builder.go index 860f3450..d84b4698 100644 --- a/pkg/github/repos/item_item_teams_request_builder.go +++ b/pkg/github/repos/item_item_teams_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTeamsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\teams +// ItemItemTeamsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\teams type ItemItemTeamsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemTeamsRequestBuilderGetQueryParameters struct { // NewItemItemTeamsRequestBuilderInternal instantiates a new ItemItemTeamsRequestBuilder and sets the default values. func NewItemItemTeamsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTeamsRequestBuilder) { m := &ItemItemTeamsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/teams{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/teams{?page*,per_page*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_topics_request_builder.go b/pkg/github/repos/item_item_topics_request_builder.go index 86d44474..09dcc325 100644 --- a/pkg/github/repos/item_item_topics_request_builder.go +++ b/pkg/github/repos/item_item_topics_request_builder.go @@ -6,7 +6,7 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTopicsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\topics +// ItemItemTopicsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\topics type ItemItemTopicsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -20,7 +20,7 @@ type ItemItemTopicsRequestBuilderGetQueryParameters struct { // NewItemItemTopicsRequestBuilderInternal instantiates a new ItemItemTopicsRequestBuilder and sets the default values. func NewItemItemTopicsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTopicsRequestBuilder) { m := &ItemItemTopicsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/topics{?page*,per_page*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/topics{?page*,per_page*}", pathParameters), } return m } @@ -87,7 +87,7 @@ func (m *ItemItemTopicsRequestBuilder) ToGetRequestInformation(ctx context.Conte } // returns a *RequestInformation when successful func (m *ItemItemTopicsRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemItemTopicsPutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/topics", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/topics", m.BaseRequestBuilder.PathParameters) i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) requestInfo.Headers.TryAdd("Accept", "application/json") err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) diff --git a/pkg/github/repos/item_item_traffic_clones_request_builder.go b/pkg/github/repos/item_item_traffic_clones_request_builder.go index 50395ab1..ed93c999 100644 --- a/pkg/github/repos/item_item_traffic_clones_request_builder.go +++ b/pkg/github/repos/item_item_traffic_clones_request_builder.go @@ -7,7 +7,7 @@ import ( i1d0f28263915d5f59d46016ea25888da94f489536a9769cb5698c30da42ce737 "github.com/octokit/go-sdk/pkg/github/repos/item/item/traffic/clones" ) -// ItemItemTrafficClonesRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\traffic\clones +// ItemItemTrafficClonesRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\traffic\clones type ItemItemTrafficClonesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -19,7 +19,7 @@ type ItemItemTrafficClonesRequestBuilderGetQueryParameters struct { // NewItemItemTrafficClonesRequestBuilderInternal instantiates a new ItemItemTrafficClonesRequestBuilder and sets the default values. func NewItemItemTrafficClonesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTrafficClonesRequestBuilder) { m := &ItemItemTrafficClonesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/traffic/clones{?per*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/traffic/clones{?per*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_traffic_popular_paths_request_builder.go b/pkg/github/repos/item_item_traffic_popular_paths_request_builder.go index db77b96f..c25c5591 100644 --- a/pkg/github/repos/item_item_traffic_popular_paths_request_builder.go +++ b/pkg/github/repos/item_item_traffic_popular_paths_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTrafficPopularPathsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\traffic\popular\paths +// ItemItemTrafficPopularPathsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\traffic\popular\paths type ItemItemTrafficPopularPathsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemTrafficPopularPathsRequestBuilderInternal instantiates a new ItemItemTrafficPopularPathsRequestBuilder and sets the default values. func NewItemItemTrafficPopularPathsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTrafficPopularPathsRequestBuilder) { m := &ItemItemTrafficPopularPathsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/traffic/popular/paths", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/traffic/popular/paths", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_traffic_popular_referrers_request_builder.go b/pkg/github/repos/item_item_traffic_popular_referrers_request_builder.go index 2affd01c..bda877c1 100644 --- a/pkg/github/repos/item_item_traffic_popular_referrers_request_builder.go +++ b/pkg/github/repos/item_item_traffic_popular_referrers_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTrafficPopularReferrersRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\traffic\popular\referrers +// ItemItemTrafficPopularReferrersRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\traffic\popular\referrers type ItemItemTrafficPopularReferrersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemTrafficPopularReferrersRequestBuilderInternal instantiates a new ItemItemTrafficPopularReferrersRequestBuilder and sets the default values. func NewItemItemTrafficPopularReferrersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTrafficPopularReferrersRequestBuilder) { m := &ItemItemTrafficPopularReferrersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/traffic/popular/referrers", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/traffic/popular/referrers", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_traffic_popular_request_builder.go b/pkg/github/repos/item_item_traffic_popular_request_builder.go index f74329be..d3df233a 100644 --- a/pkg/github/repos/item_item_traffic_popular_request_builder.go +++ b/pkg/github/repos/item_item_traffic_popular_request_builder.go @@ -4,14 +4,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemTrafficPopularRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\traffic\popular +// ItemItemTrafficPopularRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\traffic\popular type ItemItemTrafficPopularRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemTrafficPopularRequestBuilderInternal instantiates a new ItemItemTrafficPopularRequestBuilder and sets the default values. func NewItemItemTrafficPopularRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTrafficPopularRequestBuilder) { m := &ItemItemTrafficPopularRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/traffic/popular", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/traffic/popular", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_traffic_request_builder.go b/pkg/github/repos/item_item_traffic_request_builder.go index e9dab2a4..37ec8732 100644 --- a/pkg/github/repos/item_item_traffic_request_builder.go +++ b/pkg/github/repos/item_item_traffic_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemTrafficRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\traffic +// ItemItemTrafficRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\traffic type ItemItemTrafficRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -16,7 +16,7 @@ func (m *ItemItemTrafficRequestBuilder) Clones()(*ItemItemTrafficClonesRequestBu // NewItemItemTrafficRequestBuilderInternal instantiates a new ItemItemTrafficRequestBuilder and sets the default values. func NewItemItemTrafficRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTrafficRequestBuilder) { m := &ItemItemTrafficRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/traffic", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/traffic", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_traffic_views_request_builder.go b/pkg/github/repos/item_item_traffic_views_request_builder.go index 2d5c58f2..3c04e6ac 100644 --- a/pkg/github/repos/item_item_traffic_views_request_builder.go +++ b/pkg/github/repos/item_item_traffic_views_request_builder.go @@ -7,7 +7,7 @@ import ( i519e57b587cd0e846159d929c723700fc30b0b1283d00e0ed34d02139b90315e "github.com/octokit/go-sdk/pkg/github/repos/item/item/traffic/views" ) -// ItemItemTrafficViewsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\traffic\views +// ItemItemTrafficViewsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\traffic\views type ItemItemTrafficViewsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -19,7 +19,7 @@ type ItemItemTrafficViewsRequestBuilderGetQueryParameters struct { // NewItemItemTrafficViewsRequestBuilderInternal instantiates a new ItemItemTrafficViewsRequestBuilder and sets the default values. func NewItemItemTrafficViewsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTrafficViewsRequestBuilder) { m := &ItemItemTrafficViewsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/traffic/views{?per*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/traffic/views{?per*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_transfer_request_builder.go b/pkg/github/repos/item_item_transfer_request_builder.go index 20e4baeb..e737f93c 100644 --- a/pkg/github/repos/item_item_transfer_request_builder.go +++ b/pkg/github/repos/item_item_transfer_request_builder.go @@ -6,14 +6,14 @@ import ( i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" ) -// ItemItemTransferRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\transfer +// ItemItemTransferRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\transfer type ItemItemTransferRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemTransferRequestBuilderInternal instantiates a new ItemItemTransferRequestBuilder and sets the default values. func NewItemItemTransferRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemTransferRequestBuilder) { m := &ItemItemTransferRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/transfer", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/transfer", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_vulnerability_alerts_request_builder.go b/pkg/github/repos/item_item_vulnerability_alerts_request_builder.go index 27cd90ee..146c2ebf 100644 --- a/pkg/github/repos/item_item_vulnerability_alerts_request_builder.go +++ b/pkg/github/repos/item_item_vulnerability_alerts_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemVulnerabilityAlertsRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\vulnerability-alerts +// ItemItemVulnerabilityAlertsRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\vulnerability-alerts type ItemItemVulnerabilityAlertsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemVulnerabilityAlertsRequestBuilderInternal instantiates a new ItemItemVulnerabilityAlertsRequestBuilder and sets the default values. func NewItemItemVulnerabilityAlertsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemVulnerabilityAlertsRequestBuilder) { m := &ItemItemVulnerabilityAlertsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/vulnerability-alerts", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/vulnerability-alerts", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_zipball_request_builder.go b/pkg/github/repos/item_item_zipball_request_builder.go index c5de1096..d0ff504a 100644 --- a/pkg/github/repos/item_item_zipball_request_builder.go +++ b/pkg/github/repos/item_item_zipball_request_builder.go @@ -4,7 +4,7 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemZipballRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\zipball +// ItemItemZipballRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\zipball type ItemItemZipballRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } @@ -23,7 +23,7 @@ func (m *ItemItemZipballRequestBuilder) ByRef(ref string)(*ItemItemZipballWithRe // NewItemItemZipballRequestBuilderInternal instantiates a new ItemItemZipballRequestBuilder and sets the default values. func NewItemItemZipballRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemZipballRequestBuilder) { m := &ItemItemZipballRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/zipball", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/zipball", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_zipball_with_ref_item_request_builder.go b/pkg/github/repos/item_item_zipball_with_ref_item_request_builder.go index 93fb0098..2d9a5723 100644 --- a/pkg/github/repos/item_item_zipball_with_ref_item_request_builder.go +++ b/pkg/github/repos/item_item_zipball_with_ref_item_request_builder.go @@ -5,14 +5,14 @@ import ( i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" ) -// ItemItemZipballWithRefItemRequestBuilder builds and executes requests for operations under \repos\{repos-id}\{Owner-id}\zipball\{ref} +// ItemItemZipballWithRefItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id}\zipball\{ref} type ItemItemZipballWithRefItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } // NewItemItemZipballWithRefItemRequestBuilderInternal instantiates a new ItemItemZipballWithRefItemRequestBuilder and sets the default values. func NewItemItemZipballWithRefItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemZipballWithRefItemRequestBuilder) { m := &ItemItemZipballWithRefItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{repos%2Did}/{Owner%2Did}/zipball/{ref}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/zipball/{ref}", pathParameters), } return m } diff --git a/pkg/github/repos/item_repo_item_request_builder.go b/pkg/github/repos/item_repo_item_request_builder.go new file mode 100644 index 00000000..205fe60a --- /dev/null +++ b/pkg/github/repos/item_repo_item_request_builder.go @@ -0,0 +1,456 @@ +package repos + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models" +) + +// ItemRepoItemRequestBuilder builds and executes requests for operations under \repos\{owner-id}\{repo-id} +type ItemRepoItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// Actions the actions property +// returns a *ItemItemActionsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Actions()(*ItemItemActionsRequestBuilder) { + return NewItemItemActionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Activity the activity property +// returns a *ItemItemActivityRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Activity()(*ItemItemActivityRequestBuilder) { + return NewItemItemActivityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Assignees the assignees property +// returns a *ItemItemAssigneesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Assignees()(*ItemItemAssigneesRequestBuilder) { + return NewItemItemAssigneesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Autolinks the autolinks property +// returns a *ItemItemAutolinksRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Autolinks()(*ItemItemAutolinksRequestBuilder) { + return NewItemItemAutolinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// AutomatedSecurityFixes the automatedSecurityFixes property +// returns a *ItemItemAutomatedSecurityFixesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) AutomatedSecurityFixes()(*ItemItemAutomatedSecurityFixesRequestBuilder) { + return NewItemItemAutomatedSecurityFixesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Branches the branches property +// returns a *ItemItemBranchesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Branches()(*ItemItemBranchesRequestBuilder) { + return NewItemItemBranchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// CheckRuns the checkRuns property +// returns a *ItemItemCheckRunsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) CheckRuns()(*ItemItemCheckRunsRequestBuilder) { + return NewItemItemCheckRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// CheckSuites the checkSuites property +// returns a *ItemItemCheckSuitesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) CheckSuites()(*ItemItemCheckSuitesRequestBuilder) { + return NewItemItemCheckSuitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Codeowners the codeowners property +// returns a *ItemItemCodeownersRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Codeowners()(*ItemItemCodeownersRequestBuilder) { + return NewItemItemCodeownersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// CodeScanning the codeScanning property +// returns a *ItemItemCodeScanningRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) CodeScanning()(*ItemItemCodeScanningRequestBuilder) { + return NewItemItemCodeScanningRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Codespaces the codespaces property +// returns a *ItemItemCodespacesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Codespaces()(*ItemItemCodespacesRequestBuilder) { + return NewItemItemCodespacesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Collaborators the collaborators property +// returns a *ItemItemCollaboratorsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Collaborators()(*ItemItemCollaboratorsRequestBuilder) { + return NewItemItemCollaboratorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Comments the comments property +// returns a *ItemItemCommentsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Comments()(*ItemItemCommentsRequestBuilder) { + return NewItemItemCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Commits the commits property +// returns a *ItemItemCommitsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Commits()(*ItemItemCommitsRequestBuilder) { + return NewItemItemCommitsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Community the community property +// returns a *ItemItemCommunityRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Community()(*ItemItemCommunityRequestBuilder) { + return NewItemItemCommunityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Compare the compare property +// returns a *ItemItemCompareRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Compare()(*ItemItemCompareRequestBuilder) { + return NewItemItemCompareRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemRepoItemRequestBuilderInternal instantiates a new ItemRepoItemRequestBuilder and sets the default values. +func NewItemRepoItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRepoItemRequestBuilder) { + m := &ItemRepoItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}", pathParameters), + } + return m +} +// NewItemRepoItemRequestBuilder instantiates a new ItemRepoItemRequestBuilder and sets the default values. +func NewItemRepoItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRepoItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemRepoItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Contents the contents property +// returns a *ItemItemContentsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Contents()(*ItemItemContentsRequestBuilder) { + return NewItemItemContentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Contributors the contributors property +// returns a *ItemItemContributorsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Contributors()(*ItemItemContributorsRequestBuilder) { + return NewItemItemContributorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Delete deleting a repository requires admin access.If an organization owner has configured the organization to prevent members from deleting organization-ownedrepositories, you will get a `403 Forbidden` response.OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint. +// returns a ItemItemRepo403Error error when the service returns a 403 status code +// returns a BasicError error when the service returns a 404 status code +// [API method documentation] +// +// [API method documentation]: https://docs.github.com/rest/repos/repos#delete-a-repository +func (m *ItemRepoItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "403": CreateItemItemRepo403ErrorFromDiscriminatorValue, + "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Dependabot the dependabot property +// returns a *ItemItemDependabotRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Dependabot()(*ItemItemDependabotRequestBuilder) { + return NewItemItemDependabotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// DependencyGraph the dependencyGraph property +// returns a *ItemItemDependencyGraphRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) DependencyGraph()(*ItemItemDependencyGraphRequestBuilder) { + return NewItemItemDependencyGraphRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Deployments the deployments property +// returns a *ItemItemDeploymentsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Deployments()(*ItemItemDeploymentsRequestBuilder) { + return NewItemItemDeploymentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Dispatches the dispatches property +// returns a *ItemItemDispatchesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Dispatches()(*ItemItemDispatchesRequestBuilder) { + return NewItemItemDispatchesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Environments the environments property +// returns a *ItemItemEnvironmentsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Environments()(*ItemItemEnvironmentsRequestBuilder) { + return NewItemItemEnvironmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Events the events property +// returns a *ItemItemEventsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Events()(*ItemItemEventsRequestBuilder) { + return NewItemItemEventsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Forks the forks property +// returns a *ItemItemForksRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Forks()(*ItemItemForksRequestBuilder) { + return NewItemItemForksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Generate the generate property +// returns a *ItemItemGenerateRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Generate()(*ItemItemGenerateRequestBuilder) { + return NewItemItemGenerateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.**Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." +// returns a FullRepositoryable when successful +// returns a BasicError error when the service returns a 403 status code +// returns a BasicError error when the service returns a 404 status code +// [API method documentation] +// +// [API method documentation]: https://docs.github.com/rest/repos/repos#get-a-repository +func (m *ItemRepoItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFullRepositoryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable), nil +} +// Git the git property +// returns a *ItemItemGitRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Git()(*ItemItemGitRequestBuilder) { + return NewItemItemGitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Hooks the hooks property +// returns a *ItemItemHooksRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Hooks()(*ItemItemHooksRequestBuilder) { + return NewItemItemHooksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ImportEscaped the import property +// returns a *ItemItemImportRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) ImportEscaped()(*ItemItemImportRequestBuilder) { + return NewItemItemImportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Installation the installation property +// returns a *ItemItemInstallationRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Installation()(*ItemItemInstallationRequestBuilder) { + return NewItemItemInstallationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// InteractionLimits the interactionLimits property +// returns a *ItemItemInteractionLimitsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) InteractionLimits()(*ItemItemInteractionLimitsRequestBuilder) { + return NewItemItemInteractionLimitsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Invitations the invitations property +// returns a *ItemItemInvitationsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Invitations()(*ItemItemInvitationsRequestBuilder) { + return NewItemItemInvitationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Issues the issues property +// returns a *ItemItemIssuesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Issues()(*ItemItemIssuesRequestBuilder) { + return NewItemItemIssuesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Keys the keys property +// returns a *ItemItemKeysRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Keys()(*ItemItemKeysRequestBuilder) { + return NewItemItemKeysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Labels the labels property +// returns a *ItemItemLabelsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Labels()(*ItemItemLabelsRequestBuilder) { + return NewItemItemLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Languages the languages property +// returns a *ItemItemLanguagesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Languages()(*ItemItemLanguagesRequestBuilder) { + return NewItemItemLanguagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// License the license property +// returns a *ItemItemLicenseRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) License()(*ItemItemLicenseRequestBuilder) { + return NewItemItemLicenseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merges the merges property +// returns a *ItemItemMergesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Merges()(*ItemItemMergesRequestBuilder) { + return NewItemItemMergesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// MergeUpstream the mergeUpstream property +// returns a *ItemItemMergeUpstreamRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) MergeUpstream()(*ItemItemMergeUpstreamRequestBuilder) { + return NewItemItemMergeUpstreamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Milestones the milestones property +// returns a *ItemItemMilestonesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Milestones()(*ItemItemMilestonesRequestBuilder) { + return NewItemItemMilestonesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Notifications the notifications property +// returns a *ItemItemNotificationsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Notifications()(*ItemItemNotificationsRequestBuilder) { + return NewItemItemNotificationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Pages the pages property +// returns a *ItemItemPagesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Pages()(*ItemItemPagesRequestBuilder) { + return NewItemItemPagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. +// returns a FullRepositoryable when successful +// returns a BasicError error when the service returns a 403 status code +// returns a BasicError error when the service returns a 404 status code +// returns a ValidationError error when the service returns a 422 status code +// [API method documentation] +// +// [API method documentation]: https://docs.github.com/rest/repos/repos#update-a-repository +func (m *ItemRepoItemRequestBuilder) Patch(ctx context.Context, body ItemItemRepoPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + "404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue, + "422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFullRepositoryFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.FullRepositoryable), nil +} +// PrivateVulnerabilityReporting the privateVulnerabilityReporting property +// returns a *ItemItemPrivateVulnerabilityReportingRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) PrivateVulnerabilityReporting()(*ItemItemPrivateVulnerabilityReportingRequestBuilder) { + return NewItemItemPrivateVulnerabilityReportingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Projects the projects property +// returns a *ItemItemProjectsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Projects()(*ItemItemProjectsRequestBuilder) { + return NewItemItemProjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Properties the properties property +// returns a *ItemItemPropertiesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Properties()(*ItemItemPropertiesRequestBuilder) { + return NewItemItemPropertiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Pulls the pulls property +// returns a *ItemItemPullsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Pulls()(*ItemItemPullsRequestBuilder) { + return NewItemItemPullsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Readme the readme property +// returns a *ItemItemReadmeRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Readme()(*ItemItemReadmeRequestBuilder) { + return NewItemItemReadmeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Releases the releases property +// returns a *ItemItemReleasesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Releases()(*ItemItemReleasesRequestBuilder) { + return NewItemItemReleasesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Rules the rules property +// returns a *ItemItemRulesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Rules()(*ItemItemRulesRequestBuilder) { + return NewItemItemRulesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Rulesets the rulesets property +// returns a *ItemItemRulesetsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Rulesets()(*ItemItemRulesetsRequestBuilder) { + return NewItemItemRulesetsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SecretScanning the secretScanning property +// returns a *ItemItemSecretScanningRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) SecretScanning()(*ItemItemSecretScanningRequestBuilder) { + return NewItemItemSecretScanningRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SecurityAdvisories the securityAdvisories property +// returns a *ItemItemSecurityAdvisoriesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) SecurityAdvisories()(*ItemItemSecurityAdvisoriesRequestBuilder) { + return NewItemItemSecurityAdvisoriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Stargazers the stargazers property +// returns a *ItemItemStargazersRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Stargazers()(*ItemItemStargazersRequestBuilder) { + return NewItemItemStargazersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Stats the stats property +// returns a *ItemItemStatsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Stats()(*ItemItemStatsRequestBuilder) { + return NewItemItemStatsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Statuses the statuses property +// returns a *ItemItemStatusesRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Statuses()(*ItemItemStatusesRequestBuilder) { + return NewItemItemStatusesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Subscribers the subscribers property +// returns a *ItemItemSubscribersRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Subscribers()(*ItemItemSubscribersRequestBuilder) { + return NewItemItemSubscribersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Subscription the subscription property +// returns a *ItemItemSubscriptionRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Subscription()(*ItemItemSubscriptionRequestBuilder) { + return NewItemItemSubscriptionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Tags the tags property +// returns a *ItemItemTagsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Tags()(*ItemItemTagsRequestBuilder) { + return NewItemItemTagsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Tarball the tarball property +// returns a *ItemItemTarballRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Tarball()(*ItemItemTarballRequestBuilder) { + return NewItemItemTarballRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Teams the teams property +// returns a *ItemItemTeamsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Teams()(*ItemItemTeamsRequestBuilder) { + return NewItemItemTeamsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation deleting a repository requires admin access.If an organization owner has configured the organization to prevent members from deleting organization-ownedrepositories, you will get a `403 Forbidden` response.OAuth app tokens and personal access tokens (classic) need the `delete_repo` scope to use this endpoint. +// returns a *RequestInformation when successful +func (m *ItemRepoItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.**Note:** In order to see the `security_and_analysis` block for a repository you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." +// returns a *RequestInformation when successful +func (m *ItemRepoItemRequestBuilder) 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 +} +// ToPatchRequestInformation **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/repos/repos#replace-all-repository-topics) endpoint. +// returns a *RequestInformation when successful +func (m *ItemRepoItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemItemRepoPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ConfigureRequestInformation(requestInfo, requestConfiguration) + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// Topics the topics property +// returns a *ItemItemTopicsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Topics()(*ItemItemTopicsRequestBuilder) { + return NewItemItemTopicsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Traffic the traffic property +// returns a *ItemItemTrafficRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Traffic()(*ItemItemTrafficRequestBuilder) { + return NewItemItemTrafficRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Transfer the transfer property +// returns a *ItemItemTransferRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Transfer()(*ItemItemTransferRequestBuilder) { + return NewItemItemTransferRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// VulnerabilityAlerts the vulnerabilityAlerts property +// returns a *ItemItemVulnerabilityAlertsRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) VulnerabilityAlerts()(*ItemItemVulnerabilityAlertsRequestBuilder) { + return NewItemItemVulnerabilityAlertsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemRepoItemRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) WithUrl(rawUrl string)(*ItemRepoItemRequestBuilder) { + return NewItemRepoItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} +// Zipball the zipball property +// returns a *ItemItemZipballRequestBuilder when successful +func (m *ItemRepoItemRequestBuilder) Zipball()(*ItemItemZipballRequestBuilder) { + return NewItemItemZipballRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/pkg/github/repos/owner_item_request_builder.go b/pkg/github/repos/owner_item_request_builder.go new file mode 100644 index 00000000..715754ec --- /dev/null +++ b/pkg/github/repos/owner_item_request_builder.go @@ -0,0 +1,35 @@ +package repos + +import ( + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" +) + +// OwnerItemRequestBuilder builds and executes requests for operations under \repos\{owner-id} +type OwnerItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ByRepoId gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item.item collection +// returns a *ItemRepoItemRequestBuilder when successful +func (m *OwnerItemRequestBuilder) ByRepoId(repoId string)(*ItemRepoItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if repoId != "" { + urlTplParams["repo%2Did"] = repoId + } + return NewItemRepoItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewOwnerItemRequestBuilderInternal instantiates a new OwnerItemRequestBuilder and sets the default values. +func NewOwnerItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OwnerItemRequestBuilder) { + m := &OwnerItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}", pathParameters), + } + return m +} +// NewOwnerItemRequestBuilder instantiates a new OwnerItemRequestBuilder and sets the default values. +func NewOwnerItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*OwnerItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewOwnerItemRequestBuilderInternal(urlParams, requestAdapter) +} diff --git a/pkg/github/repos/repos_request_builder.go b/pkg/github/repos/repos_request_builder.go index e27f1542..1c58fe04 100644 --- a/pkg/github/repos/repos_request_builder.go +++ b/pkg/github/repos/repos_request_builder.go @@ -8,17 +8,17 @@ import ( type ReposRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ByReposId gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item collection -// returns a *ReposItemRequestBuilder when successful -func (m *ReposRequestBuilder) ByReposId(reposId string)(*ReposItemRequestBuilder) { +// ByOwnerId gets an item from the github.com/octokit/go-sdk/pkg/github/.repos.item collection +// returns a *OwnerItemRequestBuilder when successful +func (m *ReposRequestBuilder) ByOwnerId(ownerId string)(*OwnerItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters { urlTplParams[idx] = item } - if reposId != "" { - urlTplParams["repos%2Did"] = reposId + if ownerId != "" { + urlTplParams["owner%2Did"] = ownerId } - return NewReposItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) + return NewOwnerItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } // NewReposRequestBuilderInternal instantiates a new ReposRequestBuilder and sets the default values. func NewReposRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReposRequestBuilder) {