repositories

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateItemEnvironmentsItemSecretsGetResponseFromDiscriminatorValue

CreateItemEnvironmentsItemSecretsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue

func CreateItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

CreateItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemEnvironmentsItemSecretsResponseFromDiscriminatorValue

CreateItemEnvironmentsItemSecretsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

func CreateItemEnvironmentsItemVariablesGetResponseFromDiscriminatorValue

CreateItemEnvironmentsItemVariablesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyFromDiscriminatorValue

func CreateItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

CreateItemEnvironmentsItemVariablesItemWithNamePatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemEnvironmentsItemVariablesPostRequestBodyFromDiscriminatorValue

CreateItemEnvironmentsItemVariablesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemEnvironmentsItemVariablesResponseFromDiscriminatorValue

CreateItemEnvironmentsItemVariablesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value

Types

type ItemEnvironmentsItemSecretsGetResponse

type ItemEnvironmentsItemSecretsGetResponse struct {
	// contains filtered or unexported fields
}

func NewItemEnvironmentsItemSecretsGetResponse

func NewItemEnvironmentsItemSecretsGetResponse() *ItemEnvironmentsItemSecretsGetResponse

NewItemEnvironmentsItemSecretsGetResponse instantiates a new ItemEnvironmentsItemSecretsGetResponse and sets the default values.

func (*ItemEnvironmentsItemSecretsGetResponse) GetAdditionalData

func (m *ItemEnvironmentsItemSecretsGetResponse) 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 (*ItemEnvironmentsItemSecretsGetResponse) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemEnvironmentsItemSecretsGetResponse) GetSecrets

GetSecrets gets the secrets property value. The secrets property returns a []ActionsSecretable when successful

func (*ItemEnvironmentsItemSecretsGetResponse) GetTotalCount

func (m *ItemEnvironmentsItemSecretsGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*ItemEnvironmentsItemSecretsGetResponse) Serialize

Serialize serializes information the current object

func (*ItemEnvironmentsItemSecretsGetResponse) SetAdditionalData

func (m *ItemEnvironmentsItemSecretsGetResponse) 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 (*ItemEnvironmentsItemSecretsGetResponse) SetSecrets

SetSecrets sets the secrets property value. The secrets property

func (*ItemEnvironmentsItemSecretsGetResponse) SetTotalCount

func (m *ItemEnvironmentsItemSecretsGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

type ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody

type ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody

func NewItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody() *ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody

NewItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody instantiates a new ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody and sets the default values.

func (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetAdditionalData

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 (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetEncryptedValue

GetEncryptedValue gets the encrypted_value property value. Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint. returns a *string when successful

func (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) GetKeyId

GetKeyId gets the key_id property value. ID of the key you used to encrypt the secret. returns a *string when successful

func (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) Serialize

Serialize serializes information the current object

func (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) SetAdditionalData

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 (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) SetEncryptedValue

SetEncryptedValue sets the encrypted_value property value. Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.

func (*ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBody) SetKeyId

SetKeyId sets the key_id property value. ID of the key you used to encrypt the secret.

type ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyable

type ItemEnvironmentsItemSecretsItemWithSecret_namePutRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetEncryptedValue() *string
	GetKeyId() *string
	SetEncryptedValue(value *string)
	SetKeyId(value *string)
}

type ItemEnvironmentsItemSecretsPublicKeyRequestBuilder

type ItemEnvironmentsItemSecretsPublicKeyRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemEnvironmentsItemSecretsPublicKeyRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\secrets\public-key

func NewItemEnvironmentsItemSecretsPublicKeyRequestBuilder

NewItemEnvironmentsItemSecretsPublicKeyRequestBuilder instantiates a new ItemEnvironmentsItemSecretsPublicKeyRequestBuilder and sets the default values.

func NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal

func NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder

NewItemEnvironmentsItemSecretsPublicKeyRequestBuilderInternal instantiates a new ItemEnvironmentsItemSecretsPublicKeyRequestBuilder and sets the default values.

func (*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) Get

Get get the public key for an environment, which you need to encrypt environmentsecrets. You need to encrypt a secret before you can create or update secrets.Anyone with read 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 ActionsPublicKeyable when successful API method documentation

func (*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) ToGetRequestInformation

ToGetRequestInformation get the public key for an environment, which you need to encrypt environmentsecrets. You need to encrypt a secret before you can create or update secrets.Anyone with read 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 (*ItemEnvironmentsItemSecretsPublicKeyRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder when successful

type ItemEnvironmentsItemSecretsRequestBuilder

type ItemEnvironmentsItemSecretsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemEnvironmentsItemSecretsRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\secrets

func NewItemEnvironmentsItemSecretsRequestBuilder

NewItemEnvironmentsItemSecretsRequestBuilder instantiates a new ItemEnvironmentsItemSecretsRequestBuilder and sets the default values.

func NewItemEnvironmentsItemSecretsRequestBuilderInternal

func NewItemEnvironmentsItemSecretsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemSecretsRequestBuilder

NewItemEnvironmentsItemSecretsRequestBuilderInternal instantiates a new ItemEnvironmentsItemSecretsRequestBuilder and sets the default values.

func (*ItemEnvironmentsItemSecretsRequestBuilder) BySecret_name

BySecret_name gets an item from the github.com/octokit/go-sdk/pkg/github/.repositories.item.environments.item.secrets.item collection returns a *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder when successful

func (*ItemEnvironmentsItemSecretsRequestBuilder) Get

Get lists all secrets available in an environment without revealing theirencrypted values.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a ItemEnvironmentsItemSecretsGetResponseable when successful API method documentation

func (*ItemEnvironmentsItemSecretsRequestBuilder) PublicKey

PublicKey the publicKey property returns a *ItemEnvironmentsItemSecretsPublicKeyRequestBuilder when successful

func (*ItemEnvironmentsItemSecretsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all secrets available in an environment without revealing theirencrypted values.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a *RequestInformation when successful

func (*ItemEnvironmentsItemSecretsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemEnvironmentsItemSecretsRequestBuilder when successful

type ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters

type ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters 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"`
}

ItemEnvironmentsItemSecretsRequestBuilderGetQueryParameters lists all secrets available in an environment without revealing theirencrypted values.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

type ItemEnvironmentsItemSecretsResponse

type ItemEnvironmentsItemSecretsResponse struct {
	ItemEnvironmentsItemSecretsGetResponse
}

ItemEnvironmentsItemSecretsResponse Deprecated: This class is obsolete. Use secretsGetResponse instead.

func NewItemEnvironmentsItemSecretsResponse

func NewItemEnvironmentsItemSecretsResponse() *ItemEnvironmentsItemSecretsResponse

NewItemEnvironmentsItemSecretsResponse instantiates a new ItemEnvironmentsItemSecretsResponse and sets the default values.

type ItemEnvironmentsItemSecretsResponseable

ItemEnvironmentsItemSecretsResponseable Deprecated: This class is obsolete. Use secretsGetResponse instead.

type ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder

type ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\secrets\{secret_name}

func NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder

func NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder

NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder instantiates a new ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder and sets the default values.

func NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal

func NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder

NewItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilderInternal instantiates a new ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder and sets the default values.

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) Delete

Delete deletes a secret in an environment using the secret name.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. API method documentation

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) Get

Get gets a single environment secret without revealing its encrypted value.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a ActionsSecretable when successful API method documentation

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) Put

Put creates or updates an environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a EmptyObjectable when successful API method documentation

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes a secret in an environment using the secret name.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a *RequestInformation when successful

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets a single environment secret without revealing its encrypted value.Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a *RequestInformation when successful

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation creates or updates an environment secret with an encrypted value. Encrypt your secret using[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see "[Encrypting secrets for the REST API](https://docs.github.com/rest/guides/encrypting-secrets-for-the-rest-api)."Authenticated users must have collaborator access to a repository to create, update, or read secrets.OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a *RequestInformation when successful

func (*ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemEnvironmentsItemSecretsWithSecret_nameItemRequestBuilder when successful

type ItemEnvironmentsItemVariablesGetResponse

type ItemEnvironmentsItemVariablesGetResponse struct {
	// contains filtered or unexported fields
}

func NewItemEnvironmentsItemVariablesGetResponse

func NewItemEnvironmentsItemVariablesGetResponse() *ItemEnvironmentsItemVariablesGetResponse

NewItemEnvironmentsItemVariablesGetResponse instantiates a new ItemEnvironmentsItemVariablesGetResponse and sets the default values.

func (*ItemEnvironmentsItemVariablesGetResponse) GetAdditionalData

func (m *ItemEnvironmentsItemVariablesGetResponse) 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 (*ItemEnvironmentsItemVariablesGetResponse) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemEnvironmentsItemVariablesGetResponse) GetTotalCount

func (m *ItemEnvironmentsItemVariablesGetResponse) GetTotalCount() *int32

GetTotalCount gets the total_count property value. The total_count property returns a *int32 when successful

func (*ItemEnvironmentsItemVariablesGetResponse) GetVariables

GetVariables gets the variables property value. The variables property returns a []ActionsVariableable when successful

func (*ItemEnvironmentsItemVariablesGetResponse) Serialize

Serialize serializes information the current object

func (*ItemEnvironmentsItemVariablesGetResponse) SetAdditionalData

func (m *ItemEnvironmentsItemVariablesGetResponse) 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 (*ItemEnvironmentsItemVariablesGetResponse) SetTotalCount

func (m *ItemEnvironmentsItemVariablesGetResponse) SetTotalCount(value *int32)

SetTotalCount sets the total_count property value. The total_count property

func (*ItemEnvironmentsItemVariablesGetResponse) SetVariables

SetVariables sets the variables property value. The variables property

type ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody

type ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemEnvironmentsItemVariablesItemWithNamePatchRequestBody

func NewItemEnvironmentsItemVariablesItemWithNamePatchRequestBody() *ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody

NewItemEnvironmentsItemVariablesItemWithNamePatchRequestBody instantiates a new ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody and sets the default values.

func (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetAdditionalData

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 (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetName

GetName gets the name property value. The name of the variable. returns a *string when successful

func (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) GetValue

GetValue gets the value property value. The value of the variable. returns a *string when successful

func (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) Serialize

Serialize serializes information the current object

func (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) SetAdditionalData

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 (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) SetName

SetName sets the name property value. The name of the variable.

func (*ItemEnvironmentsItemVariablesItemWithNamePatchRequestBody) SetValue

SetValue sets the value property value. The value of the variable.

type ItemEnvironmentsItemVariablesPostRequestBody

type ItemEnvironmentsItemVariablesPostRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemEnvironmentsItemVariablesPostRequestBody

func NewItemEnvironmentsItemVariablesPostRequestBody() *ItemEnvironmentsItemVariablesPostRequestBody

NewItemEnvironmentsItemVariablesPostRequestBody instantiates a new ItemEnvironmentsItemVariablesPostRequestBody and sets the default values.

func (*ItemEnvironmentsItemVariablesPostRequestBody) GetAdditionalData

func (m *ItemEnvironmentsItemVariablesPostRequestBody) 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 (*ItemEnvironmentsItemVariablesPostRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemEnvironmentsItemVariablesPostRequestBody) GetName

GetName gets the name property value. The name of the variable. returns a *string when successful

func (*ItemEnvironmentsItemVariablesPostRequestBody) GetValue

GetValue gets the value property value. The value of the variable. returns a *string when successful

func (*ItemEnvironmentsItemVariablesPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemEnvironmentsItemVariablesPostRequestBody) SetAdditionalData

func (m *ItemEnvironmentsItemVariablesPostRequestBody) 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 (*ItemEnvironmentsItemVariablesPostRequestBody) SetName

SetName sets the name property value. The name of the variable.

func (*ItemEnvironmentsItemVariablesPostRequestBody) SetValue

SetValue sets the value property value. The value of the variable.

type ItemEnvironmentsItemVariablesRequestBuilder

type ItemEnvironmentsItemVariablesRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemEnvironmentsItemVariablesRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\variables

func NewItemEnvironmentsItemVariablesRequestBuilder

NewItemEnvironmentsItemVariablesRequestBuilder instantiates a new ItemEnvironmentsItemVariablesRequestBuilder and sets the default values.

func NewItemEnvironmentsItemVariablesRequestBuilderInternal

func NewItemEnvironmentsItemVariablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemVariablesRequestBuilder

NewItemEnvironmentsItemVariablesRequestBuilderInternal instantiates a new ItemEnvironmentsItemVariablesRequestBuilder and sets the default values.

func (*ItemEnvironmentsItemVariablesRequestBuilder) ByName

ByName gets an item from the github.com/octokit/go-sdk/pkg/github/.repositories.item.environments.item.variables.item collection returns a *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder when successful

func (*ItemEnvironmentsItemVariablesRequestBuilder) Get

Get lists all environment variables.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a ItemEnvironmentsItemVariablesGetResponseable when successful API method documentation

func (*ItemEnvironmentsItemVariablesRequestBuilder) Post

Post create an environment 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 EmptyObjectable when successful API method documentation

func (*ItemEnvironmentsItemVariablesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all environment variables.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a *RequestInformation when successful

func (*ItemEnvironmentsItemVariablesRequestBuilder) ToPostRequestInformation

ToPostRequestInformation create an environment 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 (*ItemEnvironmentsItemVariablesRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemEnvironmentsItemVariablesRequestBuilder when successful

type ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters

type ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters 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 30). 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"`
}

ItemEnvironmentsItemVariablesRequestBuilderGetQueryParameters lists all environment variables.Authenticated users must have collaborator access to a repository to create, update, or read variables.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

type ItemEnvironmentsItemVariablesResponse

type ItemEnvironmentsItemVariablesResponse struct {
	ItemEnvironmentsItemVariablesGetResponse
}

ItemEnvironmentsItemVariablesResponse Deprecated: This class is obsolete. Use variablesGetResponse instead.

func NewItemEnvironmentsItemVariablesResponse

func NewItemEnvironmentsItemVariablesResponse() *ItemEnvironmentsItemVariablesResponse

NewItemEnvironmentsItemVariablesResponse instantiates a new ItemEnvironmentsItemVariablesResponse and sets the default values.

type ItemEnvironmentsItemVariablesResponseable

ItemEnvironmentsItemVariablesResponseable Deprecated: This class is obsolete. Use variablesGetResponse instead.

type ItemEnvironmentsItemVariablesWithNameItemRequestBuilder

type ItemEnvironmentsItemVariablesWithNameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemEnvironmentsItemVariablesWithNameItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}\variables\{name}

func NewItemEnvironmentsItemVariablesWithNameItemRequestBuilder

func NewItemEnvironmentsItemVariablesWithNameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder

NewItemEnvironmentsItemVariablesWithNameItemRequestBuilder instantiates a new ItemEnvironmentsItemVariablesWithNameItemRequestBuilder and sets the default values.

func NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal

func NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder

NewItemEnvironmentsItemVariablesWithNameItemRequestBuilderInternal instantiates a new ItemEnvironmentsItemVariablesWithNameItemRequestBuilder and sets the default values.

func (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) Delete

Delete deletes an environment variable using the variable name.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. API method documentation

func (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) Get

Get gets a specific variable in an environment.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 ActionsVariableable when successful API method documentation

func (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) Patch

Patch updates an environment 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 app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. API method documentation

func (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation deletes an environment variable using the variable name.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 (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation gets a specific variable in an environment.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 (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation updates an environment 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 app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. returns a *RequestInformation when successful

func (*ItemEnvironmentsItemVariablesWithNameItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *ItemEnvironmentsItemVariablesWithNameItemRequestBuilder when successful

type ItemEnvironmentsRequestBuilder

ItemEnvironmentsRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments

func NewItemEnvironmentsRequestBuilder

NewItemEnvironmentsRequestBuilder instantiates a new ItemEnvironmentsRequestBuilder and sets the default values.

func NewItemEnvironmentsRequestBuilderInternal

func NewItemEnvironmentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsRequestBuilder

NewItemEnvironmentsRequestBuilderInternal instantiates a new ItemEnvironmentsRequestBuilder and sets the default values.

func (*ItemEnvironmentsRequestBuilder) ByEnvironment_name

ByEnvironment_name gets an item from the github.com/octokit/go-sdk/pkg/github/.repositories.item.environments.item collection returns a *ItemEnvironmentsWithEnvironment_nameItemRequestBuilder when successful

type ItemEnvironmentsWithEnvironment_nameItemRequestBuilder

type ItemEnvironmentsWithEnvironment_nameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemEnvironmentsWithEnvironment_nameItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}\environments\{environment_name}

func NewItemEnvironmentsWithEnvironment_nameItemRequestBuilder

func NewItemEnvironmentsWithEnvironment_nameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsWithEnvironment_nameItemRequestBuilder

NewItemEnvironmentsWithEnvironment_nameItemRequestBuilder instantiates a new ItemEnvironmentsWithEnvironment_nameItemRequestBuilder and sets the default values.

func NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal

func NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemEnvironmentsWithEnvironment_nameItemRequestBuilder

NewItemEnvironmentsWithEnvironment_nameItemRequestBuilderInternal instantiates a new ItemEnvironmentsWithEnvironment_nameItemRequestBuilder and sets the default values.

func (*ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) Secrets

Secrets the secrets property returns a *ItemEnvironmentsItemSecretsRequestBuilder when successful

func (*ItemEnvironmentsWithEnvironment_nameItemRequestBuilder) Variables

Variables the variables property returns a *ItemEnvironmentsItemVariablesRequestBuilder when successful

type RepositoriesRequestBuilder

RepositoriesRequestBuilder builds and executes requests for operations under \repositories

func NewRepositoriesRequestBuilder

NewRepositoriesRequestBuilder instantiates a new RepositoriesRequestBuilder and sets the default values.

func NewRepositoriesRequestBuilderInternal

func NewRepositoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *RepositoriesRequestBuilder

NewRepositoriesRequestBuilderInternal instantiates a new RepositoriesRequestBuilder and sets the default values.

func (*RepositoriesRequestBuilder) Get

Get lists all public repositories in the order that they were created.Note:- For GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise.- Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of repositories. returns a []MinimalRepositoryable when successful returns a ValidationError error when the service returns a 422 status code API method documentation

func (*RepositoriesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation lists all public repositories in the order that they were created.Note:- For GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise.- Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of repositories. returns a *RequestInformation when successful

func (*RepositoriesRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *RepositoriesRequestBuilder when successful

type RepositoriesRequestBuilderGetQueryParameters

type RepositoriesRequestBuilderGetQueryParameters struct {
	// A repository ID. Only return repositories with an ID greater than this ID.
	Since *int32 `uriparametername:"since"`
}

RepositoriesRequestBuilderGetQueryParameters lists all public repositories in the order that they were created.Note:- For GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise.- Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers) to get the URL for the next page of repositories.

type WithRepository_ItemRequestBuilder

WithRepository_ItemRequestBuilder builds and executes requests for operations under \repositories\{repository_id}

func NewWithRepository_ItemRequestBuilder

NewWithRepository_ItemRequestBuilder instantiates a new WithRepository_ItemRequestBuilder and sets the default values.

func NewWithRepository_ItemRequestBuilderInternal

func NewWithRepository_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithRepository_ItemRequestBuilder

NewWithRepository_ItemRequestBuilderInternal instantiates a new WithRepository_ItemRequestBuilder and sets the default values.

func (*WithRepository_ItemRequestBuilder) Environments

Environments the environments property returns a *ItemEnvironmentsRequestBuilder when successful

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL