repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens list | docstring stringlengths 6 2.61k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 85 252 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
ory/hydra | sdk/go/hydra/client/admin/delete_json_web_key_parameters.go | WithKid | func (o *DeleteJSONWebKeyParams) WithKid(kid string) *DeleteJSONWebKeyParams {
o.SetKid(kid)
return o
} | go | func (o *DeleteJSONWebKeyParams) WithKid(kid string) *DeleteJSONWebKeyParams {
o.SetKid(kid)
return o
} | [
"func",
"(",
"o",
"*",
"DeleteJSONWebKeyParams",
")",
"WithKid",
"(",
"kid",
"string",
")",
"*",
"DeleteJSONWebKeyParams",
"{",
"o",
".",
"SetKid",
"(",
"kid",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithKid adds the kid to the delete Json web key params | [
"WithKid",
"adds",
"the",
"kid",
"to",
"the",
"delete",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/delete_json_web_key_parameters.go#L114-L117 | train |
ory/hydra | sdk/go/hydra/client/admin/delete_json_web_key_parameters.go | WithSet | func (o *DeleteJSONWebKeyParams) WithSet(set string) *DeleteJSONWebKeyParams {
o.SetSet(set)
return o
} | go | func (o *DeleteJSONWebKeyParams) WithSet(set string) *DeleteJSONWebKeyParams {
o.SetSet(set)
return o
} | [
"func",
"(",
"o",
"*",
"DeleteJSONWebKeyParams",
")",
"WithSet",
"(",
"set",
"string",
")",
"*",
"DeleteJSONWebKeyParams",
"{",
"o",
".",
"SetSet",
"(",
"set",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSet adds the set to the delete Json web key params | [
"WithSet",
"adds",
"the",
"set",
"to",
"the",
"delete",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/delete_json_web_key_parameters.go#L125-L128 | train |
ory/hydra | sdk/go/hydra/client/version/get_version_parameters.go | WithTimeout | func (o *GetVersionParams) WithTimeout(timeout time.Duration) *GetVersionParams {
o.SetTimeout(timeout)
return o
} | go | func (o *GetVersionParams) WithTimeout(timeout time.Duration) *GetVersionParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"GetVersionParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"GetVersionParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the get version params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"get",
"version",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/version/get_version_parameters.go#L69-L72 | train |
ory/hydra | sdk/go/hydra/client/version/get_version_parameters.go | WithContext | func (o *GetVersionParams) WithContext(ctx context.Context) *GetVersionParams {
o.SetContext(ctx)
return o
} | go | func (o *GetVersionParams) WithContext(ctx context.Context) *GetVersionParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"GetVersionParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"GetVersionParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the get version params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"get",
"version",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/version/get_version_parameters.go#L80-L83 | train |
ory/hydra | sdk/go/hydra/client/version/get_version_parameters.go | WithHTTPClient | func (o *GetVersionParams) WithHTTPClient(client *http.Client) *GetVersionParams {
o.SetHTTPClient(client)
return o
} | go | func (o *GetVersionParams) WithHTTPClient(client *http.Client) *GetVersionParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"GetVersionParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"GetVersionParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the get version params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"get",
"version",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/version/get_version_parameters.go#L91-L94 | train |
ory/hydra | x/secret.go | HashByteSecret | func HashByteSecret(secret []byte) []byte {
var r [32]byte
r = sha256.Sum256([]byte(secret))
return r[:]
} | go | func HashByteSecret(secret []byte) []byte {
var r [32]byte
r = sha256.Sum256([]byte(secret))
return r[:]
} | [
"func",
"HashByteSecret",
"(",
"secret",
"[",
"]",
"byte",
")",
"[",
"]",
"byte",
"{",
"var",
"r",
"[",
"32",
"]",
"byte",
"\n",
"r",
"=",
"sha256",
".",
"Sum256",
"(",
"[",
"]",
"byte",
"(",
"secret",
")",
")",
"\n",
"return",
"r",
"[",
":",
... | // HashByteSecret hashes the secret for consumption by the AEAD encryption algorithm which expects exactly 32 bytes.
//
// The system secret is being hashed to always match exactly the 32 bytes required by AEAD, even if the secret is long or
// shorter. | [
"HashByteSecret",
"hashes",
"the",
"secret",
"for",
"consumption",
"by",
"the",
"AEAD",
"encryption",
"algorithm",
"which",
"expects",
"exactly",
"32",
"bytes",
".",
"The",
"system",
"secret",
"is",
"being",
"hashed",
"to",
"always",
"match",
"exactly",
"the",
... | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/x/secret.go#L51-L55 | train |
ory/hydra | sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go | WithTimeout | func (o *GetOAuth2ClientParams) WithTimeout(timeout time.Duration) *GetOAuth2ClientParams {
o.SetTimeout(timeout)
return o
} | go | func (o *GetOAuth2ClientParams) WithTimeout(timeout time.Duration) *GetOAuth2ClientParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"GetOAuth2ClientParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"GetOAuth2ClientParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the get o auth2 client params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"get",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go#L76-L79 | train |
ory/hydra | sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go | WithContext | func (o *GetOAuth2ClientParams) WithContext(ctx context.Context) *GetOAuth2ClientParams {
o.SetContext(ctx)
return o
} | go | func (o *GetOAuth2ClientParams) WithContext(ctx context.Context) *GetOAuth2ClientParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"GetOAuth2ClientParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"GetOAuth2ClientParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the get o auth2 client params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"get",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go#L87-L90 | train |
ory/hydra | sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go | WithHTTPClient | func (o *GetOAuth2ClientParams) WithHTTPClient(client *http.Client) *GetOAuth2ClientParams {
o.SetHTTPClient(client)
return o
} | go | func (o *GetOAuth2ClientParams) WithHTTPClient(client *http.Client) *GetOAuth2ClientParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"GetOAuth2ClientParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"GetOAuth2ClientParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the get o auth2 client params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"get",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go#L98-L101 | train |
ory/hydra | sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go | WithID | func (o *GetOAuth2ClientParams) WithID(id string) *GetOAuth2ClientParams {
o.SetID(id)
return o
} | go | func (o *GetOAuth2ClientParams) WithID(id string) *GetOAuth2ClientParams {
o.SetID(id)
return o
} | [
"func",
"(",
"o",
"*",
"GetOAuth2ClientParams",
")",
"WithID",
"(",
"id",
"string",
")",
"*",
"GetOAuth2ClientParams",
"{",
"o",
".",
"SetID",
"(",
"id",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithID adds the id to the get o auth2 client params | [
"WithID",
"adds",
"the",
"id",
"to",
"the",
"get",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_o_auth2_client_parameters.go#L109-L112 | train |
ory/hydra | sdk/go/hydra/client/admin/accept_logout_request_parameters.go | WithTimeout | func (o *AcceptLogoutRequestParams) WithTimeout(timeout time.Duration) *AcceptLogoutRequestParams {
o.SetTimeout(timeout)
return o
} | go | func (o *AcceptLogoutRequestParams) WithTimeout(timeout time.Duration) *AcceptLogoutRequestParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"AcceptLogoutRequestParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"AcceptLogoutRequestParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the accept logout request params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"accept",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/accept_logout_request_parameters.go#L73-L76 | train |
ory/hydra | sdk/go/hydra/client/admin/accept_logout_request_parameters.go | WithContext | func (o *AcceptLogoutRequestParams) WithContext(ctx context.Context) *AcceptLogoutRequestParams {
o.SetContext(ctx)
return o
} | go | func (o *AcceptLogoutRequestParams) WithContext(ctx context.Context) *AcceptLogoutRequestParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"AcceptLogoutRequestParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"AcceptLogoutRequestParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the accept logout request params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"accept",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/accept_logout_request_parameters.go#L84-L87 | train |
ory/hydra | sdk/go/hydra/client/admin/accept_logout_request_parameters.go | WithHTTPClient | func (o *AcceptLogoutRequestParams) WithHTTPClient(client *http.Client) *AcceptLogoutRequestParams {
o.SetHTTPClient(client)
return o
} | go | func (o *AcceptLogoutRequestParams) WithHTTPClient(client *http.Client) *AcceptLogoutRequestParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"AcceptLogoutRequestParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"AcceptLogoutRequestParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the accept logout request params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"accept",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/accept_logout_request_parameters.go#L95-L98 | train |
ory/hydra | sdk/go/hydra/client/admin/accept_logout_request_parameters.go | WithLogoutChallenge | func (o *AcceptLogoutRequestParams) WithLogoutChallenge(logoutChallenge string) *AcceptLogoutRequestParams {
o.SetLogoutChallenge(logoutChallenge)
return o
} | go | func (o *AcceptLogoutRequestParams) WithLogoutChallenge(logoutChallenge string) *AcceptLogoutRequestParams {
o.SetLogoutChallenge(logoutChallenge)
return o
} | [
"func",
"(",
"o",
"*",
"AcceptLogoutRequestParams",
")",
"WithLogoutChallenge",
"(",
"logoutChallenge",
"string",
")",
"*",
"AcceptLogoutRequestParams",
"{",
"o",
".",
"SetLogoutChallenge",
"(",
"logoutChallenge",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithLogoutChallenge adds the logoutChallenge to the accept logout request params | [
"WithLogoutChallenge",
"adds",
"the",
"logoutChallenge",
"to",
"the",
"accept",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/accept_logout_request_parameters.go#L106-L109 | train |
ory/hydra | sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go | WithTimeout | func (o *FlushInactiveOAuth2TokensParams) WithTimeout(timeout time.Duration) *FlushInactiveOAuth2TokensParams {
o.SetTimeout(timeout)
return o
} | go | func (o *FlushInactiveOAuth2TokensParams) WithTimeout(timeout time.Duration) *FlushInactiveOAuth2TokensParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"FlushInactiveOAuth2TokensParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"FlushInactiveOAuth2TokensParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the flush inactive o auth2 tokens params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"flush",
"inactive",
"o",
"auth2",
"tokens",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go#L75-L78 | train |
ory/hydra | sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go | WithContext | func (o *FlushInactiveOAuth2TokensParams) WithContext(ctx context.Context) *FlushInactiveOAuth2TokensParams {
o.SetContext(ctx)
return o
} | go | func (o *FlushInactiveOAuth2TokensParams) WithContext(ctx context.Context) *FlushInactiveOAuth2TokensParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"FlushInactiveOAuth2TokensParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"FlushInactiveOAuth2TokensParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the flush inactive o auth2 tokens params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"flush",
"inactive",
"o",
"auth2",
"tokens",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go#L86-L89 | train |
ory/hydra | sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go | WithHTTPClient | func (o *FlushInactiveOAuth2TokensParams) WithHTTPClient(client *http.Client) *FlushInactiveOAuth2TokensParams {
o.SetHTTPClient(client)
return o
} | go | func (o *FlushInactiveOAuth2TokensParams) WithHTTPClient(client *http.Client) *FlushInactiveOAuth2TokensParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"FlushInactiveOAuth2TokensParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"FlushInactiveOAuth2TokensParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the flush inactive o auth2 tokens params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"flush",
"inactive",
"o",
"auth2",
"tokens",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go#L97-L100 | train |
ory/hydra | sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go | WithBody | func (o *FlushInactiveOAuth2TokensParams) WithBody(body *models.FlushInactiveOAuth2TokensRequest) *FlushInactiveOAuth2TokensParams {
o.SetBody(body)
return o
} | go | func (o *FlushInactiveOAuth2TokensParams) WithBody(body *models.FlushInactiveOAuth2TokensRequest) *FlushInactiveOAuth2TokensParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"FlushInactiveOAuth2TokensParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"FlushInactiveOAuth2TokensRequest",
")",
"*",
"FlushInactiveOAuth2TokensParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}... | // WithBody adds the body to the flush inactive o auth2 tokens params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"flush",
"inactive",
"o",
"auth2",
"tokens",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/flush_inactive_o_auth2_tokens_parameters.go#L108-L111 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_login_request_parameters.go | WithTimeout | func (o *RejectLoginRequestParams) WithTimeout(timeout time.Duration) *RejectLoginRequestParams {
o.SetTimeout(timeout)
return o
} | go | func (o *RejectLoginRequestParams) WithTimeout(timeout time.Duration) *RejectLoginRequestParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLoginRequestParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"RejectLoginRequestParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the reject login request params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"reject",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_login_request_parameters.go#L77-L80 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_login_request_parameters.go | WithContext | func (o *RejectLoginRequestParams) WithContext(ctx context.Context) *RejectLoginRequestParams {
o.SetContext(ctx)
return o
} | go | func (o *RejectLoginRequestParams) WithContext(ctx context.Context) *RejectLoginRequestParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLoginRequestParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"RejectLoginRequestParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the reject login request params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"reject",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_login_request_parameters.go#L88-L91 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_login_request_parameters.go | WithHTTPClient | func (o *RejectLoginRequestParams) WithHTTPClient(client *http.Client) *RejectLoginRequestParams {
o.SetHTTPClient(client)
return o
} | go | func (o *RejectLoginRequestParams) WithHTTPClient(client *http.Client) *RejectLoginRequestParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLoginRequestParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"RejectLoginRequestParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the reject login request params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"reject",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_login_request_parameters.go#L99-L102 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_login_request_parameters.go | WithBody | func (o *RejectLoginRequestParams) WithBody(body *models.RequestDeniedError) *RejectLoginRequestParams {
o.SetBody(body)
return o
} | go | func (o *RejectLoginRequestParams) WithBody(body *models.RequestDeniedError) *RejectLoginRequestParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLoginRequestParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"RequestDeniedError",
")",
"*",
"RejectLoginRequestParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithBody adds the body to the reject login request params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"reject",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_login_request_parameters.go#L110-L113 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_login_request_parameters.go | WithLoginChallenge | func (o *RejectLoginRequestParams) WithLoginChallenge(loginChallenge string) *RejectLoginRequestParams {
o.SetLoginChallenge(loginChallenge)
return o
} | go | func (o *RejectLoginRequestParams) WithLoginChallenge(loginChallenge string) *RejectLoginRequestParams {
o.SetLoginChallenge(loginChallenge)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLoginRequestParams",
")",
"WithLoginChallenge",
"(",
"loginChallenge",
"string",
")",
"*",
"RejectLoginRequestParams",
"{",
"o",
".",
"SetLoginChallenge",
"(",
"loginChallenge",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithLoginChallenge adds the loginChallenge to the reject login request params | [
"WithLoginChallenge",
"adds",
"the",
"loginChallenge",
"to",
"the",
"reject",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_login_request_parameters.go#L121-L124 | train |
ory/hydra | sdk/go/hydra/client/public/discover_open_id_configuration_parameters.go | WithTimeout | func (o *DiscoverOpenIDConfigurationParams) WithTimeout(timeout time.Duration) *DiscoverOpenIDConfigurationParams {
o.SetTimeout(timeout)
return o
} | go | func (o *DiscoverOpenIDConfigurationParams) WithTimeout(timeout time.Duration) *DiscoverOpenIDConfigurationParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"DiscoverOpenIDConfigurationParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"DiscoverOpenIDConfigurationParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the discover open ID configuration params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"discover",
"open",
"ID",
"configuration",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/discover_open_id_configuration_parameters.go#L69-L72 | train |
ory/hydra | sdk/go/hydra/client/public/discover_open_id_configuration_parameters.go | WithContext | func (o *DiscoverOpenIDConfigurationParams) WithContext(ctx context.Context) *DiscoverOpenIDConfigurationParams {
o.SetContext(ctx)
return o
} | go | func (o *DiscoverOpenIDConfigurationParams) WithContext(ctx context.Context) *DiscoverOpenIDConfigurationParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"DiscoverOpenIDConfigurationParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"DiscoverOpenIDConfigurationParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the discover open ID configuration params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"discover",
"open",
"ID",
"configuration",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/discover_open_id_configuration_parameters.go#L80-L83 | train |
ory/hydra | sdk/go/hydra/client/public/discover_open_id_configuration_parameters.go | WithHTTPClient | func (o *DiscoverOpenIDConfigurationParams) WithHTTPClient(client *http.Client) *DiscoverOpenIDConfigurationParams {
o.SetHTTPClient(client)
return o
} | go | func (o *DiscoverOpenIDConfigurationParams) WithHTTPClient(client *http.Client) *DiscoverOpenIDConfigurationParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"DiscoverOpenIDConfigurationParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"DiscoverOpenIDConfigurationParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the discover open ID configuration params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"discover",
"open",
"ID",
"configuration",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/discover_open_id_configuration_parameters.go#L91-L94 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go | WithTimeout | func (o *GetJSONWebKeySetParams) WithTimeout(timeout time.Duration) *GetJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | go | func (o *GetJSONWebKeySetParams) WithTimeout(timeout time.Duration) *GetJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeySetParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"GetJSONWebKeySetParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the get Json web key set params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"get",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go#L76-L79 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go | WithContext | func (o *GetJSONWebKeySetParams) WithContext(ctx context.Context) *GetJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | go | func (o *GetJSONWebKeySetParams) WithContext(ctx context.Context) *GetJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeySetParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"GetJSONWebKeySetParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the get Json web key set params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"get",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go#L87-L90 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go | WithHTTPClient | func (o *GetJSONWebKeySetParams) WithHTTPClient(client *http.Client) *GetJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | go | func (o *GetJSONWebKeySetParams) WithHTTPClient(client *http.Client) *GetJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeySetParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"GetJSONWebKeySetParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the get Json web key set params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"get",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go#L98-L101 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go | WithSet | func (o *GetJSONWebKeySetParams) WithSet(set string) *GetJSONWebKeySetParams {
o.SetSet(set)
return o
} | go | func (o *GetJSONWebKeySetParams) WithSet(set string) *GetJSONWebKeySetParams {
o.SetSet(set)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeySetParams",
")",
"WithSet",
"(",
"set",
"string",
")",
"*",
"GetJSONWebKeySetParams",
"{",
"o",
".",
"SetSet",
"(",
"set",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSet adds the set to the get Json web key set params | [
"WithSet",
"adds",
"the",
"set",
"to",
"the",
"get",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_set_parameters.go#L109-L112 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_consent_request_parameters.go | WithTimeout | func (o *RejectConsentRequestParams) WithTimeout(timeout time.Duration) *RejectConsentRequestParams {
o.SetTimeout(timeout)
return o
} | go | func (o *RejectConsentRequestParams) WithTimeout(timeout time.Duration) *RejectConsentRequestParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"RejectConsentRequestParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"RejectConsentRequestParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the reject consent request params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"reject",
"consent",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_consent_request_parameters.go#L77-L80 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_consent_request_parameters.go | WithContext | func (o *RejectConsentRequestParams) WithContext(ctx context.Context) *RejectConsentRequestParams {
o.SetContext(ctx)
return o
} | go | func (o *RejectConsentRequestParams) WithContext(ctx context.Context) *RejectConsentRequestParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"RejectConsentRequestParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"RejectConsentRequestParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the reject consent request params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"reject",
"consent",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_consent_request_parameters.go#L88-L91 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_consent_request_parameters.go | WithHTTPClient | func (o *RejectConsentRequestParams) WithHTTPClient(client *http.Client) *RejectConsentRequestParams {
o.SetHTTPClient(client)
return o
} | go | func (o *RejectConsentRequestParams) WithHTTPClient(client *http.Client) *RejectConsentRequestParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"RejectConsentRequestParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"RejectConsentRequestParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the reject consent request params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"reject",
"consent",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_consent_request_parameters.go#L99-L102 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_consent_request_parameters.go | WithBody | func (o *RejectConsentRequestParams) WithBody(body *models.RequestDeniedError) *RejectConsentRequestParams {
o.SetBody(body)
return o
} | go | func (o *RejectConsentRequestParams) WithBody(body *models.RequestDeniedError) *RejectConsentRequestParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"RejectConsentRequestParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"RequestDeniedError",
")",
"*",
"RejectConsentRequestParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithBody adds the body to the reject consent request params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"reject",
"consent",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_consent_request_parameters.go#L110-L113 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_consent_request_parameters.go | WithConsentChallenge | func (o *RejectConsentRequestParams) WithConsentChallenge(consentChallenge string) *RejectConsentRequestParams {
o.SetConsentChallenge(consentChallenge)
return o
} | go | func (o *RejectConsentRequestParams) WithConsentChallenge(consentChallenge string) *RejectConsentRequestParams {
o.SetConsentChallenge(consentChallenge)
return o
} | [
"func",
"(",
"o",
"*",
"RejectConsentRequestParams",
")",
"WithConsentChallenge",
"(",
"consentChallenge",
"string",
")",
"*",
"RejectConsentRequestParams",
"{",
"o",
".",
"SetConsentChallenge",
"(",
"consentChallenge",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithConsentChallenge adds the consentChallenge to the reject consent request params | [
"WithConsentChallenge",
"adds",
"the",
"consentChallenge",
"to",
"the",
"reject",
"consent",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_consent_request_parameters.go#L121-L124 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_logout_request_parameters.go | WithTimeout | func (o *RejectLogoutRequestParams) WithTimeout(timeout time.Duration) *RejectLogoutRequestParams {
o.SetTimeout(timeout)
return o
} | go | func (o *RejectLogoutRequestParams) WithTimeout(timeout time.Duration) *RejectLogoutRequestParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLogoutRequestParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"RejectLogoutRequestParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the reject logout request params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"reject",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_logout_request_parameters.go#L77-L80 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_logout_request_parameters.go | WithContext | func (o *RejectLogoutRequestParams) WithContext(ctx context.Context) *RejectLogoutRequestParams {
o.SetContext(ctx)
return o
} | go | func (o *RejectLogoutRequestParams) WithContext(ctx context.Context) *RejectLogoutRequestParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLogoutRequestParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"RejectLogoutRequestParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the reject logout request params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"reject",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_logout_request_parameters.go#L88-L91 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_logout_request_parameters.go | WithHTTPClient | func (o *RejectLogoutRequestParams) WithHTTPClient(client *http.Client) *RejectLogoutRequestParams {
o.SetHTTPClient(client)
return o
} | go | func (o *RejectLogoutRequestParams) WithHTTPClient(client *http.Client) *RejectLogoutRequestParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLogoutRequestParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"RejectLogoutRequestParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the reject logout request params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"reject",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_logout_request_parameters.go#L99-L102 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_logout_request_parameters.go | WithBody | func (o *RejectLogoutRequestParams) WithBody(body *models.RequestDeniedError) *RejectLogoutRequestParams {
o.SetBody(body)
return o
} | go | func (o *RejectLogoutRequestParams) WithBody(body *models.RequestDeniedError) *RejectLogoutRequestParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLogoutRequestParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"RequestDeniedError",
")",
"*",
"RejectLogoutRequestParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithBody adds the body to the reject logout request params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"reject",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_logout_request_parameters.go#L110-L113 | train |
ory/hydra | sdk/go/hydra/client/admin/reject_logout_request_parameters.go | WithLogoutChallenge | func (o *RejectLogoutRequestParams) WithLogoutChallenge(logoutChallenge string) *RejectLogoutRequestParams {
o.SetLogoutChallenge(logoutChallenge)
return o
} | go | func (o *RejectLogoutRequestParams) WithLogoutChallenge(logoutChallenge string) *RejectLogoutRequestParams {
o.SetLogoutChallenge(logoutChallenge)
return o
} | [
"func",
"(",
"o",
"*",
"RejectLogoutRequestParams",
")",
"WithLogoutChallenge",
"(",
"logoutChallenge",
"string",
")",
"*",
"RejectLogoutRequestParams",
"{",
"o",
".",
"SetLogoutChallenge",
"(",
"logoutChallenge",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithLogoutChallenge adds the logoutChallenge to the reject logout request params | [
"WithLogoutChallenge",
"adds",
"the",
"logoutChallenge",
"to",
"the",
"reject",
"logout",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/reject_logout_request_parameters.go#L121-L124 | train |
ory/hydra | sdk/go/hydra/models/previous_consent_session.go | Validate | func (m *PreviousConsentSession) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateConsentRequest(formats); err != nil {
res = append(res, err)
}
if err := m.validateSession(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationErro... | go | func (m *PreviousConsentSession) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateConsentRequest(formats); err != nil {
res = append(res, err)
}
if err := m.validateSession(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationErro... | [
"func",
"(",
"m",
"*",
"PreviousConsentSession",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateConsentRequest",
"(",
"formats",
")",
";",
"err... | // Validate validates this previous consent session | [
"Validate",
"validates",
"this",
"previous",
"consent",
"session"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/previous_consent_session.go#L42-L57 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_parameters.go | WithTimeout | func (o *GetJSONWebKeyParams) WithTimeout(timeout time.Duration) *GetJSONWebKeyParams {
o.SetTimeout(timeout)
return o
} | go | func (o *GetJSONWebKeyParams) WithTimeout(timeout time.Duration) *GetJSONWebKeyParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeyParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"GetJSONWebKeyParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the get Json web key params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"get",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_parameters.go#L81-L84 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_parameters.go | WithContext | func (o *GetJSONWebKeyParams) WithContext(ctx context.Context) *GetJSONWebKeyParams {
o.SetContext(ctx)
return o
} | go | func (o *GetJSONWebKeyParams) WithContext(ctx context.Context) *GetJSONWebKeyParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeyParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"GetJSONWebKeyParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the get Json web key params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"get",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_parameters.go#L92-L95 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_parameters.go | WithHTTPClient | func (o *GetJSONWebKeyParams) WithHTTPClient(client *http.Client) *GetJSONWebKeyParams {
o.SetHTTPClient(client)
return o
} | go | func (o *GetJSONWebKeyParams) WithHTTPClient(client *http.Client) *GetJSONWebKeyParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeyParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"GetJSONWebKeyParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the get Json web key params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"get",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_parameters.go#L103-L106 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_parameters.go | WithKid | func (o *GetJSONWebKeyParams) WithKid(kid string) *GetJSONWebKeyParams {
o.SetKid(kid)
return o
} | go | func (o *GetJSONWebKeyParams) WithKid(kid string) *GetJSONWebKeyParams {
o.SetKid(kid)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeyParams",
")",
"WithKid",
"(",
"kid",
"string",
")",
"*",
"GetJSONWebKeyParams",
"{",
"o",
".",
"SetKid",
"(",
"kid",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithKid adds the kid to the get Json web key params | [
"WithKid",
"adds",
"the",
"kid",
"to",
"the",
"get",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_parameters.go#L114-L117 | train |
ory/hydra | sdk/go/hydra/client/admin/get_json_web_key_parameters.go | WithSet | func (o *GetJSONWebKeyParams) WithSet(set string) *GetJSONWebKeyParams {
o.SetSet(set)
return o
} | go | func (o *GetJSONWebKeyParams) WithSet(set string) *GetJSONWebKeyParams {
o.SetSet(set)
return o
} | [
"func",
"(",
"o",
"*",
"GetJSONWebKeyParams",
")",
"WithSet",
"(",
"set",
"string",
")",
"*",
"GetJSONWebKeyParams",
"{",
"o",
".",
"SetSet",
"(",
"set",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSet adds the set to the get Json web key params | [
"WithSet",
"adds",
"the",
"set",
"to",
"the",
"get",
"Json",
"web",
"key",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_json_web_key_parameters.go#L125-L128 | train |
ory/hydra | sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go | WithTimeout | func (o *DeleteJSONWebKeySetParams) WithTimeout(timeout time.Duration) *DeleteJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | go | func (o *DeleteJSONWebKeySetParams) WithTimeout(timeout time.Duration) *DeleteJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"DeleteJSONWebKeySetParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"DeleteJSONWebKeySetParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the delete Json web key set params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"delete",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go#L76-L79 | train |
ory/hydra | sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go | WithContext | func (o *DeleteJSONWebKeySetParams) WithContext(ctx context.Context) *DeleteJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | go | func (o *DeleteJSONWebKeySetParams) WithContext(ctx context.Context) *DeleteJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"DeleteJSONWebKeySetParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"DeleteJSONWebKeySetParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the delete Json web key set params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"delete",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go#L87-L90 | train |
ory/hydra | sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go | WithHTTPClient | func (o *DeleteJSONWebKeySetParams) WithHTTPClient(client *http.Client) *DeleteJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | go | func (o *DeleteJSONWebKeySetParams) WithHTTPClient(client *http.Client) *DeleteJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"DeleteJSONWebKeySetParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"DeleteJSONWebKeySetParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the delete Json web key set params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"delete",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go#L98-L101 | train |
ory/hydra | sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go | WithSet | func (o *DeleteJSONWebKeySetParams) WithSet(set string) *DeleteJSONWebKeySetParams {
o.SetSet(set)
return o
} | go | func (o *DeleteJSONWebKeySetParams) WithSet(set string) *DeleteJSONWebKeySetParams {
o.SetSet(set)
return o
} | [
"func",
"(",
"o",
"*",
"DeleteJSONWebKeySetParams",
")",
"WithSet",
"(",
"set",
"string",
")",
"*",
"DeleteJSONWebKeySetParams",
"{",
"o",
".",
"SetSet",
"(",
"set",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSet adds the set to the delete Json web key set params | [
"WithSet",
"adds",
"the",
"set",
"to",
"the",
"delete",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/delete_json_web_key_set_parameters.go#L109-L112 | train |
ory/hydra | sdk/go/hydra/models/generic_error.go | Validate | func (m *GenericError) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateName(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | go | func (m *GenericError) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateName(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
"func",
"(",
"m",
"*",
"GenericError",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateName",
"(",
"formats",
")",
";",
"err",
"!=",
"nil",
... | // Validate validates this generic error | [
"Validate",
"validates",
"this",
"generic",
"error"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/generic_error.go#L37-L48 | train |
ory/hydra | sdk/go/hydra/models/swagger_flush_inactive_access_tokens.go | Validate | func (m *SwaggerFlushInactiveAccessTokens) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBody(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | go | func (m *SwaggerFlushInactiveAccessTokens) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBody(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
"func",
"(",
"m",
"*",
"SwaggerFlushInactiveAccessTokens",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateBody",
"(",
"formats",
")",
";",
"err... | // Validate validates this swagger flush inactive access tokens | [
"Validate",
"validates",
"this",
"swagger",
"flush",
"inactive",
"access",
"tokens"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/swagger_flush_inactive_access_tokens.go#L24-L35 | train |
ory/hydra | sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go | WithTimeout | func (o *CreateJSONWebKeySetParams) WithTimeout(timeout time.Duration) *CreateJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | go | func (o *CreateJSONWebKeySetParams) WithTimeout(timeout time.Duration) *CreateJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"CreateJSONWebKeySetParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"CreateJSONWebKeySetParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the create Json web key set params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"create",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go#L80-L83 | train |
ory/hydra | sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go | WithContext | func (o *CreateJSONWebKeySetParams) WithContext(ctx context.Context) *CreateJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | go | func (o *CreateJSONWebKeySetParams) WithContext(ctx context.Context) *CreateJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"CreateJSONWebKeySetParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"CreateJSONWebKeySetParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the create Json web key set params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"create",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go#L91-L94 | train |
ory/hydra | sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go | WithHTTPClient | func (o *CreateJSONWebKeySetParams) WithHTTPClient(client *http.Client) *CreateJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | go | func (o *CreateJSONWebKeySetParams) WithHTTPClient(client *http.Client) *CreateJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"CreateJSONWebKeySetParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"CreateJSONWebKeySetParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the create Json web key set params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"create",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go#L102-L105 | train |
ory/hydra | sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go | WithBody | func (o *CreateJSONWebKeySetParams) WithBody(body *models.CreateRequest) *CreateJSONWebKeySetParams {
o.SetBody(body)
return o
} | go | func (o *CreateJSONWebKeySetParams) WithBody(body *models.CreateRequest) *CreateJSONWebKeySetParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"CreateJSONWebKeySetParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"CreateRequest",
")",
"*",
"CreateJSONWebKeySetParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithBody adds the body to the create Json web key set params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"create",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go#L113-L116 | train |
ory/hydra | sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go | WithSet | func (o *CreateJSONWebKeySetParams) WithSet(set string) *CreateJSONWebKeySetParams {
o.SetSet(set)
return o
} | go | func (o *CreateJSONWebKeySetParams) WithSet(set string) *CreateJSONWebKeySetParams {
o.SetSet(set)
return o
} | [
"func",
"(",
"o",
"*",
"CreateJSONWebKeySetParams",
")",
"WithSet",
"(",
"set",
"string",
")",
"*",
"CreateJSONWebKeySetParams",
"{",
"o",
".",
"SetSet",
"(",
"set",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSet adds the set to the create Json web key set params | [
"WithSet",
"adds",
"the",
"set",
"to",
"the",
"create",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/create_json_web_key_set_parameters.go#L124-L127 | train |
ory/hydra | sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go | WithTimeout | func (o *RevokeAuthenticationSessionParams) WithTimeout(timeout time.Duration) *RevokeAuthenticationSessionParams {
o.SetTimeout(timeout)
return o
} | go | func (o *RevokeAuthenticationSessionParams) WithTimeout(timeout time.Duration) *RevokeAuthenticationSessionParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeAuthenticationSessionParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"RevokeAuthenticationSessionParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the revoke authentication session params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"revoke",
"authentication",
"session",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go#L73-L76 | train |
ory/hydra | sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go | WithContext | func (o *RevokeAuthenticationSessionParams) WithContext(ctx context.Context) *RevokeAuthenticationSessionParams {
o.SetContext(ctx)
return o
} | go | func (o *RevokeAuthenticationSessionParams) WithContext(ctx context.Context) *RevokeAuthenticationSessionParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeAuthenticationSessionParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"RevokeAuthenticationSessionParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the revoke authentication session params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"revoke",
"authentication",
"session",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go#L84-L87 | train |
ory/hydra | sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go | WithHTTPClient | func (o *RevokeAuthenticationSessionParams) WithHTTPClient(client *http.Client) *RevokeAuthenticationSessionParams {
o.SetHTTPClient(client)
return o
} | go | func (o *RevokeAuthenticationSessionParams) WithHTTPClient(client *http.Client) *RevokeAuthenticationSessionParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeAuthenticationSessionParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"RevokeAuthenticationSessionParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the revoke authentication session params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"revoke",
"authentication",
"session",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go#L95-L98 | train |
ory/hydra | sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go | WithSubject | func (o *RevokeAuthenticationSessionParams) WithSubject(subject string) *RevokeAuthenticationSessionParams {
o.SetSubject(subject)
return o
} | go | func (o *RevokeAuthenticationSessionParams) WithSubject(subject string) *RevokeAuthenticationSessionParams {
o.SetSubject(subject)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeAuthenticationSessionParams",
")",
"WithSubject",
"(",
"subject",
"string",
")",
"*",
"RevokeAuthenticationSessionParams",
"{",
"o",
".",
"SetSubject",
"(",
"subject",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSubject adds the subject to the revoke authentication session params | [
"WithSubject",
"adds",
"the",
"subject",
"to",
"the",
"revoke",
"authentication",
"session",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/revoke_authentication_session_parameters.go#L106-L109 | train |
ory/hydra | sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go | WithTimeout | func (o *UpdateOAuth2ClientParams) WithTimeout(timeout time.Duration) *UpdateOAuth2ClientParams {
o.SetTimeout(timeout)
return o
} | go | func (o *UpdateOAuth2ClientParams) WithTimeout(timeout time.Duration) *UpdateOAuth2ClientParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateOAuth2ClientParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"UpdateOAuth2ClientParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the update o auth2 client params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"update",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go#L77-L80 | train |
ory/hydra | sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go | WithContext | func (o *UpdateOAuth2ClientParams) WithContext(ctx context.Context) *UpdateOAuth2ClientParams {
o.SetContext(ctx)
return o
} | go | func (o *UpdateOAuth2ClientParams) WithContext(ctx context.Context) *UpdateOAuth2ClientParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateOAuth2ClientParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"UpdateOAuth2ClientParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the update o auth2 client params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"update",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go#L88-L91 | train |
ory/hydra | sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go | WithHTTPClient | func (o *UpdateOAuth2ClientParams) WithHTTPClient(client *http.Client) *UpdateOAuth2ClientParams {
o.SetHTTPClient(client)
return o
} | go | func (o *UpdateOAuth2ClientParams) WithHTTPClient(client *http.Client) *UpdateOAuth2ClientParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateOAuth2ClientParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"UpdateOAuth2ClientParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the update o auth2 client params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"update",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go#L99-L102 | train |
ory/hydra | sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go | WithBody | func (o *UpdateOAuth2ClientParams) WithBody(body *models.Client) *UpdateOAuth2ClientParams {
o.SetBody(body)
return o
} | go | func (o *UpdateOAuth2ClientParams) WithBody(body *models.Client) *UpdateOAuth2ClientParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateOAuth2ClientParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"Client",
")",
"*",
"UpdateOAuth2ClientParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithBody adds the body to the update o auth2 client params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"update",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go#L110-L113 | train |
ory/hydra | sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go | WithID | func (o *UpdateOAuth2ClientParams) WithID(id string) *UpdateOAuth2ClientParams {
o.SetID(id)
return o
} | go | func (o *UpdateOAuth2ClientParams) WithID(id string) *UpdateOAuth2ClientParams {
o.SetID(id)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateOAuth2ClientParams",
")",
"WithID",
"(",
"id",
"string",
")",
"*",
"UpdateOAuth2ClientParams",
"{",
"o",
".",
"SetID",
"(",
"id",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithID adds the id to the update o auth2 client params | [
"WithID",
"adds",
"the",
"id",
"to",
"the",
"update",
"o",
"auth2",
"client",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_o_auth2_client_parameters.go#L121-L124 | train |
ory/hydra | sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go | WithTimeout | func (o *ListSubjectConsentSessionsParams) WithTimeout(timeout time.Duration) *ListSubjectConsentSessionsParams {
o.SetTimeout(timeout)
return o
} | go | func (o *ListSubjectConsentSessionsParams) WithTimeout(timeout time.Duration) *ListSubjectConsentSessionsParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"ListSubjectConsentSessionsParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"ListSubjectConsentSessionsParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the list subject consent sessions params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"list",
"subject",
"consent",
"sessions",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go#L73-L76 | train |
ory/hydra | sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go | WithContext | func (o *ListSubjectConsentSessionsParams) WithContext(ctx context.Context) *ListSubjectConsentSessionsParams {
o.SetContext(ctx)
return o
} | go | func (o *ListSubjectConsentSessionsParams) WithContext(ctx context.Context) *ListSubjectConsentSessionsParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"ListSubjectConsentSessionsParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"ListSubjectConsentSessionsParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the list subject consent sessions params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"list",
"subject",
"consent",
"sessions",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go#L84-L87 | train |
ory/hydra | sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go | WithHTTPClient | func (o *ListSubjectConsentSessionsParams) WithHTTPClient(client *http.Client) *ListSubjectConsentSessionsParams {
o.SetHTTPClient(client)
return o
} | go | func (o *ListSubjectConsentSessionsParams) WithHTTPClient(client *http.Client) *ListSubjectConsentSessionsParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"ListSubjectConsentSessionsParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"ListSubjectConsentSessionsParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the list subject consent sessions params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"list",
"subject",
"consent",
"sessions",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go#L95-L98 | train |
ory/hydra | sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go | WithSubject | func (o *ListSubjectConsentSessionsParams) WithSubject(subject string) *ListSubjectConsentSessionsParams {
o.SetSubject(subject)
return o
} | go | func (o *ListSubjectConsentSessionsParams) WithSubject(subject string) *ListSubjectConsentSessionsParams {
o.SetSubject(subject)
return o
} | [
"func",
"(",
"o",
"*",
"ListSubjectConsentSessionsParams",
")",
"WithSubject",
"(",
"subject",
"string",
")",
"*",
"ListSubjectConsentSessionsParams",
"{",
"o",
".",
"SetSubject",
"(",
"subject",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSubject adds the subject to the list subject consent sessions params | [
"WithSubject",
"adds",
"the",
"subject",
"to",
"the",
"list",
"subject",
"consent",
"sessions",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/list_subject_consent_sessions_parameters.go#L106-L109 | train |
ory/hydra | sdk/go/hydra/models/swaggeroauth2_token_parameters.go | Validate | func (m *Swaggeroauth2TokenParameters) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateGrantType(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | go | func (m *Swaggeroauth2TokenParameters) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateGrantType(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
"func",
"(",
"m",
"*",
"Swaggeroauth2TokenParameters",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateGrantType",
"(",
"formats",
")",
";",
"er... | // Validate validates this swaggeroauth2 token parameters | [
"Validate",
"validates",
"this",
"swaggeroauth2",
"token",
"parameters"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/swaggeroauth2_token_parameters.go#L35-L46 | train |
ory/hydra | sdk/go/hydra/client/admin/get_login_request_parameters.go | WithTimeout | func (o *GetLoginRequestParams) WithTimeout(timeout time.Duration) *GetLoginRequestParams {
o.SetTimeout(timeout)
return o
} | go | func (o *GetLoginRequestParams) WithTimeout(timeout time.Duration) *GetLoginRequestParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"GetLoginRequestParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"GetLoginRequestParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the get login request params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"get",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_login_request_parameters.go#L73-L76 | train |
ory/hydra | sdk/go/hydra/client/admin/get_login_request_parameters.go | WithContext | func (o *GetLoginRequestParams) WithContext(ctx context.Context) *GetLoginRequestParams {
o.SetContext(ctx)
return o
} | go | func (o *GetLoginRequestParams) WithContext(ctx context.Context) *GetLoginRequestParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"GetLoginRequestParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"GetLoginRequestParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the get login request params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"get",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_login_request_parameters.go#L84-L87 | train |
ory/hydra | sdk/go/hydra/client/admin/get_login_request_parameters.go | WithHTTPClient | func (o *GetLoginRequestParams) WithHTTPClient(client *http.Client) *GetLoginRequestParams {
o.SetHTTPClient(client)
return o
} | go | func (o *GetLoginRequestParams) WithHTTPClient(client *http.Client) *GetLoginRequestParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"GetLoginRequestParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"GetLoginRequestParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the get login request params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"get",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_login_request_parameters.go#L95-L98 | train |
ory/hydra | sdk/go/hydra/client/admin/get_login_request_parameters.go | WithLoginChallenge | func (o *GetLoginRequestParams) WithLoginChallenge(loginChallenge string) *GetLoginRequestParams {
o.SetLoginChallenge(loginChallenge)
return o
} | go | func (o *GetLoginRequestParams) WithLoginChallenge(loginChallenge string) *GetLoginRequestParams {
o.SetLoginChallenge(loginChallenge)
return o
} | [
"func",
"(",
"o",
"*",
"GetLoginRequestParams",
")",
"WithLoginChallenge",
"(",
"loginChallenge",
"string",
")",
"*",
"GetLoginRequestParams",
"{",
"o",
".",
"SetLoginChallenge",
"(",
"loginChallenge",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithLoginChallenge adds the loginChallenge to the get login request params | [
"WithLoginChallenge",
"adds",
"the",
"loginChallenge",
"to",
"the",
"get",
"login",
"request",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/get_login_request_parameters.go#L106-L109 | train |
ory/hydra | sdk/go/hydra/client/public/disconnect_user_parameters.go | WithTimeout | func (o *DisconnectUserParams) WithTimeout(timeout time.Duration) *DisconnectUserParams {
o.SetTimeout(timeout)
return o
} | go | func (o *DisconnectUserParams) WithTimeout(timeout time.Duration) *DisconnectUserParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"DisconnectUserParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"DisconnectUserParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the disconnect user params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"disconnect",
"user",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/disconnect_user_parameters.go#L69-L72 | train |
ory/hydra | sdk/go/hydra/client/public/disconnect_user_parameters.go | WithContext | func (o *DisconnectUserParams) WithContext(ctx context.Context) *DisconnectUserParams {
o.SetContext(ctx)
return o
} | go | func (o *DisconnectUserParams) WithContext(ctx context.Context) *DisconnectUserParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"DisconnectUserParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"DisconnectUserParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the disconnect user params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"disconnect",
"user",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/disconnect_user_parameters.go#L80-L83 | train |
ory/hydra | sdk/go/hydra/client/public/disconnect_user_parameters.go | WithHTTPClient | func (o *DisconnectUserParams) WithHTTPClient(client *http.Client) *DisconnectUserParams {
o.SetHTTPClient(client)
return o
} | go | func (o *DisconnectUserParams) WithHTTPClient(client *http.Client) *DisconnectUserParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"DisconnectUserParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"DisconnectUserParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the disconnect user params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"disconnect",
"user",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/disconnect_user_parameters.go#L91-L94 | train |
ory/hydra | sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go | WithTimeout | func (o *RevokeOAuth2TokenParams) WithTimeout(timeout time.Duration) *RevokeOAuth2TokenParams {
o.SetTimeout(timeout)
return o
} | go | func (o *RevokeOAuth2TokenParams) WithTimeout(timeout time.Duration) *RevokeOAuth2TokenParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeOAuth2TokenParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"RevokeOAuth2TokenParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the revoke o auth2 token params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"revoke",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go#L73-L76 | train |
ory/hydra | sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go | WithContext | func (o *RevokeOAuth2TokenParams) WithContext(ctx context.Context) *RevokeOAuth2TokenParams {
o.SetContext(ctx)
return o
} | go | func (o *RevokeOAuth2TokenParams) WithContext(ctx context.Context) *RevokeOAuth2TokenParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeOAuth2TokenParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"RevokeOAuth2TokenParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the revoke o auth2 token params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"revoke",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go#L84-L87 | train |
ory/hydra | sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go | WithHTTPClient | func (o *RevokeOAuth2TokenParams) WithHTTPClient(client *http.Client) *RevokeOAuth2TokenParams {
o.SetHTTPClient(client)
return o
} | go | func (o *RevokeOAuth2TokenParams) WithHTTPClient(client *http.Client) *RevokeOAuth2TokenParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeOAuth2TokenParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"RevokeOAuth2TokenParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the revoke o auth2 token params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"revoke",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go#L95-L98 | train |
ory/hydra | sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go | WithToken | func (o *RevokeOAuth2TokenParams) WithToken(token string) *RevokeOAuth2TokenParams {
o.SetToken(token)
return o
} | go | func (o *RevokeOAuth2TokenParams) WithToken(token string) *RevokeOAuth2TokenParams {
o.SetToken(token)
return o
} | [
"func",
"(",
"o",
"*",
"RevokeOAuth2TokenParams",
")",
"WithToken",
"(",
"token",
"string",
")",
"*",
"RevokeOAuth2TokenParams",
"{",
"o",
".",
"SetToken",
"(",
"token",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithToken adds the token to the revoke o auth2 token params | [
"WithToken",
"adds",
"the",
"token",
"to",
"the",
"revoke",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/revoke_o_auth2_token_parameters.go#L106-L109 | train |
ory/hydra | sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go | WithTimeout | func (o *UpdateJSONWebKeySetParams) WithTimeout(timeout time.Duration) *UpdateJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | go | func (o *UpdateJSONWebKeySetParams) WithTimeout(timeout time.Duration) *UpdateJSONWebKeySetParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateJSONWebKeySetParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"UpdateJSONWebKeySetParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the update Json web key set params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"update",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go#L80-L83 | train |
ory/hydra | sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go | WithContext | func (o *UpdateJSONWebKeySetParams) WithContext(ctx context.Context) *UpdateJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | go | func (o *UpdateJSONWebKeySetParams) WithContext(ctx context.Context) *UpdateJSONWebKeySetParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateJSONWebKeySetParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"UpdateJSONWebKeySetParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the update Json web key set params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"update",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go#L91-L94 | train |
ory/hydra | sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go | WithHTTPClient | func (o *UpdateJSONWebKeySetParams) WithHTTPClient(client *http.Client) *UpdateJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | go | func (o *UpdateJSONWebKeySetParams) WithHTTPClient(client *http.Client) *UpdateJSONWebKeySetParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateJSONWebKeySetParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"UpdateJSONWebKeySetParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the update Json web key set params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"update",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go#L102-L105 | train |
ory/hydra | sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go | WithBody | func (o *UpdateJSONWebKeySetParams) WithBody(body *models.SwaggerJSONWebKeySet) *UpdateJSONWebKeySetParams {
o.SetBody(body)
return o
} | go | func (o *UpdateJSONWebKeySetParams) WithBody(body *models.SwaggerJSONWebKeySet) *UpdateJSONWebKeySetParams {
o.SetBody(body)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateJSONWebKeySetParams",
")",
"WithBody",
"(",
"body",
"*",
"models",
".",
"SwaggerJSONWebKeySet",
")",
"*",
"UpdateJSONWebKeySetParams",
"{",
"o",
".",
"SetBody",
"(",
"body",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithBody adds the body to the update Json web key set params | [
"WithBody",
"adds",
"the",
"body",
"to",
"the",
"update",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go#L113-L116 | train |
ory/hydra | sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go | WithSet | func (o *UpdateJSONWebKeySetParams) WithSet(set string) *UpdateJSONWebKeySetParams {
o.SetSet(set)
return o
} | go | func (o *UpdateJSONWebKeySetParams) WithSet(set string) *UpdateJSONWebKeySetParams {
o.SetSet(set)
return o
} | [
"func",
"(",
"o",
"*",
"UpdateJSONWebKeySetParams",
")",
"WithSet",
"(",
"set",
"string",
")",
"*",
"UpdateJSONWebKeySetParams",
"{",
"o",
".",
"SetSet",
"(",
"set",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithSet adds the set to the update Json web key set params | [
"WithSet",
"adds",
"the",
"set",
"to",
"the",
"update",
"Json",
"web",
"key",
"set",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/update_json_web_key_set_parameters.go#L124-L127 | train |
ory/hydra | sdk/go/hydra/models/handled_login_request.go | Validate | func (m *HandledLoginRequest) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateSubject(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | go | func (m *HandledLoginRequest) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateSubject(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
"func",
"(",
"m",
"*",
"HandledLoginRequest",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateSubject",
"(",
"formats",
")",
";",
"err",
"!=",... | // Validate validates this handled login request | [
"Validate",
"validates",
"this",
"handled",
"login",
"request"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/handled_login_request.go#L63-L74 | train |
ory/hydra | sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go | WithTimeout | func (o *IntrospectOAuth2TokenParams) WithTimeout(timeout time.Duration) *IntrospectOAuth2TokenParams {
o.SetTimeout(timeout)
return o
} | go | func (o *IntrospectOAuth2TokenParams) WithTimeout(timeout time.Duration) *IntrospectOAuth2TokenParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"IntrospectOAuth2TokenParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"IntrospectOAuth2TokenParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the introspect o auth2 token params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"introspect",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go#L85-L88 | train |
ory/hydra | sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go | WithContext | func (o *IntrospectOAuth2TokenParams) WithContext(ctx context.Context) *IntrospectOAuth2TokenParams {
o.SetContext(ctx)
return o
} | go | func (o *IntrospectOAuth2TokenParams) WithContext(ctx context.Context) *IntrospectOAuth2TokenParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"IntrospectOAuth2TokenParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"IntrospectOAuth2TokenParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the introspect o auth2 token params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"introspect",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go#L96-L99 | train |
ory/hydra | sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go | WithHTTPClient | func (o *IntrospectOAuth2TokenParams) WithHTTPClient(client *http.Client) *IntrospectOAuth2TokenParams {
o.SetHTTPClient(client)
return o
} | go | func (o *IntrospectOAuth2TokenParams) WithHTTPClient(client *http.Client) *IntrospectOAuth2TokenParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"IntrospectOAuth2TokenParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"IntrospectOAuth2TokenParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the introspect o auth2 token params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"introspect",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go#L107-L110 | train |
ory/hydra | sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go | WithScope | func (o *IntrospectOAuth2TokenParams) WithScope(scope *string) *IntrospectOAuth2TokenParams {
o.SetScope(scope)
return o
} | go | func (o *IntrospectOAuth2TokenParams) WithScope(scope *string) *IntrospectOAuth2TokenParams {
o.SetScope(scope)
return o
} | [
"func",
"(",
"o",
"*",
"IntrospectOAuth2TokenParams",
")",
"WithScope",
"(",
"scope",
"*",
"string",
")",
"*",
"IntrospectOAuth2TokenParams",
"{",
"o",
".",
"SetScope",
"(",
"scope",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithScope adds the scope to the introspect o auth2 token params | [
"WithScope",
"adds",
"the",
"scope",
"to",
"the",
"introspect",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go#L118-L121 | train |
ory/hydra | sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go | WithToken | func (o *IntrospectOAuth2TokenParams) WithToken(token string) *IntrospectOAuth2TokenParams {
o.SetToken(token)
return o
} | go | func (o *IntrospectOAuth2TokenParams) WithToken(token string) *IntrospectOAuth2TokenParams {
o.SetToken(token)
return o
} | [
"func",
"(",
"o",
"*",
"IntrospectOAuth2TokenParams",
")",
"WithToken",
"(",
"token",
"string",
")",
"*",
"IntrospectOAuth2TokenParams",
"{",
"o",
".",
"SetToken",
"(",
"token",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithToken adds the token to the introspect o auth2 token params | [
"WithToken",
"adds",
"the",
"token",
"to",
"the",
"introspect",
"o",
"auth2",
"token",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/admin/introspect_o_auth2_token_parameters.go#L129-L132 | train |
ory/hydra | sdk/go/hydra/models/create_request.go | Validate | func (m *CreateRequest) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlgorithm(formats); err != nil {
res = append(res, err)
}
if err := m.validateKeyID(formats); err != nil {
res = append(res, err)
}
if err := m.validateUse(formats); err != nil {
res = append(res, err)
... | go | func (m *CreateRequest) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlgorithm(formats); err != nil {
res = append(res, err)
}
if err := m.validateKeyID(formats); err != nil {
res = append(res, err)
}
if err := m.validateUse(formats); err != nil {
res = append(res, err)
... | [
"func",
"(",
"m",
"*",
"CreateRequest",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateAlgorithm",
"(",
"formats",
")",
";",
"err",
"!=",
"... | // Validate validates this create request | [
"Validate",
"validates",
"this",
"create",
"request"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/create_request.go#L37-L56 | train |
ory/hydra | sdk/go/hydra/client/public/well_known_parameters.go | WithTimeout | func (o *WellKnownParams) WithTimeout(timeout time.Duration) *WellKnownParams {
o.SetTimeout(timeout)
return o
} | go | func (o *WellKnownParams) WithTimeout(timeout time.Duration) *WellKnownParams {
o.SetTimeout(timeout)
return o
} | [
"func",
"(",
"o",
"*",
"WellKnownParams",
")",
"WithTimeout",
"(",
"timeout",
"time",
".",
"Duration",
")",
"*",
"WellKnownParams",
"{",
"o",
".",
"SetTimeout",
"(",
"timeout",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithTimeout adds the timeout to the well known params | [
"WithTimeout",
"adds",
"the",
"timeout",
"to",
"the",
"well",
"known",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/well_known_parameters.go#L69-L72 | train |
ory/hydra | sdk/go/hydra/client/public/well_known_parameters.go | WithContext | func (o *WellKnownParams) WithContext(ctx context.Context) *WellKnownParams {
o.SetContext(ctx)
return o
} | go | func (o *WellKnownParams) WithContext(ctx context.Context) *WellKnownParams {
o.SetContext(ctx)
return o
} | [
"func",
"(",
"o",
"*",
"WellKnownParams",
")",
"WithContext",
"(",
"ctx",
"context",
".",
"Context",
")",
"*",
"WellKnownParams",
"{",
"o",
".",
"SetContext",
"(",
"ctx",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithContext adds the context to the well known params | [
"WithContext",
"adds",
"the",
"context",
"to",
"the",
"well",
"known",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/well_known_parameters.go#L80-L83 | train |
ory/hydra | sdk/go/hydra/client/public/well_known_parameters.go | WithHTTPClient | func (o *WellKnownParams) WithHTTPClient(client *http.Client) *WellKnownParams {
o.SetHTTPClient(client)
return o
} | go | func (o *WellKnownParams) WithHTTPClient(client *http.Client) *WellKnownParams {
o.SetHTTPClient(client)
return o
} | [
"func",
"(",
"o",
"*",
"WellKnownParams",
")",
"WithHTTPClient",
"(",
"client",
"*",
"http",
".",
"Client",
")",
"*",
"WellKnownParams",
"{",
"o",
".",
"SetHTTPClient",
"(",
"client",
")",
"\n",
"return",
"o",
"\n",
"}"
] | // WithHTTPClient adds the HTTPClient to the well known params | [
"WithHTTPClient",
"adds",
"the",
"HTTPClient",
"to",
"the",
"well",
"known",
"params"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/client/public/well_known_parameters.go#L91-L94 | train |
ory/hydra | sdk/go/hydra/models/introspection.go | Validate | func (m *Introspection) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateActive(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | go | func (m *Introspection) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateActive(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
"func",
"(",
"m",
"*",
"Introspection",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateActive",
"(",
"formats",
")",
";",
"err",
"!=",
"nil... | // Validate validates this introspection | [
"Validate",
"validates",
"this",
"introspection"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/introspection.go#L83-L94 | train |
ory/hydra | sdk/go/hydra/models/swagger_json_web_key.go | Validate | func (m *SwaggerJSONWebKey) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlg(formats); err != nil {
res = append(res, err)
}
if err := m.validateKid(formats); err != nil {
res = append(res, err)
}
if err := m.validateKty(formats); err != nil {
res = append(res, err)
}
... | go | func (m *SwaggerJSONWebKey) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlg(formats); err != nil {
res = append(res, err)
}
if err := m.validateKid(formats); err != nil {
res = append(res, err)
}
if err := m.validateKty(formats); err != nil {
res = append(res, err)
}
... | [
"func",
"(",
"m",
"*",
"SwaggerJSONWebKey",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateAlg",
"(",
"formats",
")",
";",
"err",
"!=",
"ni... | // Validate validates this swagger JSON web key | [
"Validate",
"validates",
"this",
"swagger",
"JSON",
"web",
"key"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/swagger_json_web_key.go#L102-L125 | train |
ory/hydra | sdk/go/hydra/models/swagger_json_web_key_set.go | Validate | func (m *SwaggerJSONWebKeySet) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateKeys(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | go | func (m *SwaggerJSONWebKeySet) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateKeys(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
"func",
"(",
"m",
"*",
"SwaggerJSONWebKeySet",
")",
"Validate",
"(",
"formats",
"strfmt",
".",
"Registry",
")",
"error",
"{",
"var",
"res",
"[",
"]",
"error",
"\n\n",
"if",
"err",
":=",
"m",
".",
"validateKeys",
"(",
"formats",
")",
";",
"err",
"!=",
... | // Validate validates this swagger JSON web key set | [
"Validate",
"validates",
"this",
"swagger",
"JSON",
"web",
"key",
"set"
] | 67c246c177446daab64be00ba82b3aea1a546570 | https://github.com/ory/hydra/blob/67c246c177446daab64be00ba82b3aea1a546570/sdk/go/hydra/models/swagger_json_web_key_set.go#L30-L41 | train |
Subsets and Splits
SQL Console for semeru/code-text-go
Retrieves a limited set of code samples with their languages, with a specific case adjustment for 'Go' language.