Documentation
¶
Index ¶
- func CreateItemCustom_rolesGetResponseFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- type ItemCustom_rolesGetResponse
- func (m *ItemCustom_rolesGetResponse) GetAdditionalData() map[string]any
- func (m *ItemCustom_rolesGetResponse) GetCustomRoles() ...
- func (m *ItemCustom_rolesGetResponse) GetFieldDeserializers() ...
- func (m *ItemCustom_rolesGetResponse) GetTotalCount() *int32
- func (m *ItemCustom_rolesGetResponse) Serialize(...) error
- func (m *ItemCustom_rolesGetResponse) SetAdditionalData(value map[string]any)
- func (m *ItemCustom_rolesGetResponse) SetCustomRoles(...)
- func (m *ItemCustom_rolesGetResponse) SetTotalCount(value *int32)
- type ItemCustom_rolesGetResponseable
- type ItemCustom_rolesRequestBuilder
- func (m *ItemCustom_rolesRequestBuilder) Get(ctx context.Context, ...) (ItemCustom_rolesGetResponseable, error)
- func (m *ItemCustom_rolesRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemCustom_rolesRequestBuilder) WithUrl(rawUrl string) *ItemCustom_rolesRequestBuilder
- type OrganizationsRequestBuilder
- func (m *OrganizationsRequestBuilder) ByOrganization_id(organization_id string) *WithOrganization_ItemRequestBuilder
- func (m *OrganizationsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *OrganizationsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *OrganizationsRequestBuilder) WithUrl(rawUrl string) *OrganizationsRequestBuilder
- type OrganizationsRequestBuilderGetQueryParameters
- type WithOrganization_ItemRequestBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateItemCustom_rolesGetResponseFromDiscriminatorValue ¶
func CreateItemCustom_rolesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemCustom_rolesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
Types ¶
type ItemCustom_rolesGetResponse ¶
type ItemCustom_rolesGetResponse struct {
// contains filtered or unexported fields
}
func NewItemCustom_rolesGetResponse ¶
func NewItemCustom_rolesGetResponse() *ItemCustom_rolesGetResponse
NewItemCustom_rolesGetResponse instantiates a new ItemCustom_rolesGetResponse and sets the default values.
func (*ItemCustom_rolesGetResponse) GetAdditionalData ¶
func (m *ItemCustom_rolesGetResponse) GetAdditionalData() map[string]any
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 (*ItemCustom_rolesGetResponse) GetCustomRoles ¶
func (m *ItemCustom_rolesGetResponse) GetCustomRoles() []ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.OrganizationCustomRepositoryRoleable
GetCustomRoles gets the custom_roles property value. The custom_roles property returns a []OrganizationCustomRepositoryRoleable when successful
func (*ItemCustom_rolesGetResponse) GetFieldDeserializers ¶
func (m *ItemCustom_rolesGetResponse) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemCustom_rolesGetResponse) GetTotalCount ¶
func (m *ItemCustom_rolesGetResponse) GetTotalCount() *int32
GetTotalCount gets the total_count property value. The number of custom roles in this organization returns a *int32 when successful
func (*ItemCustom_rolesGetResponse) Serialize ¶
func (m *ItemCustom_rolesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemCustom_rolesGetResponse) SetAdditionalData ¶
func (m *ItemCustom_rolesGetResponse) SetAdditionalData(value map[string]any)
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 (*ItemCustom_rolesGetResponse) SetCustomRoles ¶
func (m *ItemCustom_rolesGetResponse) SetCustomRoles(value []ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.OrganizationCustomRepositoryRoleable)
SetCustomRoles sets the custom_roles property value. The custom_roles property
func (*ItemCustom_rolesGetResponse) SetTotalCount ¶
func (m *ItemCustom_rolesGetResponse) SetTotalCount(value *int32)
SetTotalCount sets the total_count property value. The number of custom roles in this organization
type ItemCustom_rolesGetResponseable ¶
type ItemCustom_rolesGetResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCustomRoles() []ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.OrganizationCustomRepositoryRoleable GetTotalCount() *int32 SetCustomRoles(value []ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.OrganizationCustomRepositoryRoleable) SetTotalCount(value *int32) }
type ItemCustom_rolesRequestBuilder ¶
type ItemCustom_rolesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemCustom_rolesRequestBuilder builds and executes requests for operations under \organizations\{organization_id}\custom_roles
func NewItemCustom_rolesRequestBuilder ¶
func NewItemCustom_rolesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCustom_rolesRequestBuilder
NewItemCustom_rolesRequestBuilder instantiates a new ItemCustom_rolesRequestBuilder and sets the default values.
func NewItemCustom_rolesRequestBuilderInternal ¶
func NewItemCustom_rolesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemCustom_rolesRequestBuilder
NewItemCustom_rolesRequestBuilderInternal instantiates a new ItemCustom_rolesRequestBuilder and sets the default values.
func (*ItemCustom_rolesRequestBuilder) Get ¶
func (m *ItemCustom_rolesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ItemCustom_rolesGetResponseable, error)
Get > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-server@3.12/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-server@3.12/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. Deprecated: returns a ItemCustom_rolesGetResponseable when successful API method documentation
func (*ItemCustom_rolesRequestBuilder) ToGetRequestInformation ¶
func (m *ItemCustom_rolesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-server@3.12/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-server@3.12/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful
func (*ItemCustom_rolesRequestBuilder) WithUrl ¶
func (m *ItemCustom_rolesRequestBuilder) WithUrl(rawUrl string) *ItemCustom_rolesRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemCustom_rolesRequestBuilder when successful
type OrganizationsRequestBuilder ¶
type OrganizationsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
OrganizationsRequestBuilder builds and executes requests for operations under \organizations
func NewOrganizationsRequestBuilder ¶
func NewOrganizationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *OrganizationsRequestBuilder
NewOrganizationsRequestBuilder instantiates a new OrganizationsRequestBuilder and sets the default values.
func NewOrganizationsRequestBuilderInternal ¶
func NewOrganizationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *OrganizationsRequestBuilder
NewOrganizationsRequestBuilderInternal instantiates a new OrganizationsRequestBuilder and sets the default values.
func (*OrganizationsRequestBuilder) ByOrganization_id ¶
func (m *OrganizationsRequestBuilder) ByOrganization_id(organization_id string) *WithOrganization_ItemRequestBuilder
ByOrganization_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.organizations.item collection returns a *WithOrganization_ItemRequestBuilder when successful
func (*OrganizationsRequestBuilder) Get ¶
func (m *OrganizationsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[OrganizationsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.OrganizationSimpleable, error)
Get lists all organizations, in the order that they were created.> [!NOTE]> Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-server@3.12/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations. returns a []OrganizationSimpleable when successful API method documentation
func (*OrganizationsRequestBuilder) ToGetRequestInformation ¶
func (m *OrganizationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[OrganizationsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
ToGetRequestInformation lists all organizations, in the order that they were created.> [!NOTE]> Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-server@3.12/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations. returns a *RequestInformation when successful
func (*OrganizationsRequestBuilder) WithUrl ¶
func (m *OrganizationsRequestBuilder) WithUrl(rawUrl string) *OrganizationsRequestBuilder
WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *OrganizationsRequestBuilder when successful
type OrganizationsRequestBuilderGetQueryParameters ¶
type OrganizationsRequestBuilderGetQueryParameters struct { // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.12/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Per_page *int32 `uriparametername:"per_page"` // An organization ID. Only return organizations with an ID greater than this ID. Since *int32 `uriparametername:"since"` }
OrganizationsRequestBuilderGetQueryParameters lists all organizations, in the order that they were created.> [!NOTE]> Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/enterprise-server@3.12/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of organizations.
type WithOrganization_ItemRequestBuilder ¶
type WithOrganization_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
WithOrganization_ItemRequestBuilder builds and executes requests for operations under \organizations\{organization_id}
func NewWithOrganization_ItemRequestBuilder ¶
func NewWithOrganization_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithOrganization_ItemRequestBuilder
NewWithOrganization_ItemRequestBuilder instantiates a new WithOrganization_ItemRequestBuilder and sets the default values.
func NewWithOrganization_ItemRequestBuilderInternal ¶
func NewWithOrganization_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithOrganization_ItemRequestBuilder
NewWithOrganization_ItemRequestBuilderInternal instantiates a new WithOrganization_ItemRequestBuilder and sets the default values.
func (*WithOrganization_ItemRequestBuilder) Custom_roles ¶
func (m *WithOrganization_ItemRequestBuilder) Custom_roles() *ItemCustom_rolesRequestBuilder
Custom_roles the custom_roles property returns a *ItemCustom_rolesRequestBuilder when successful