id int32 0 167k | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
154,600 | salsaflow/salsaflow | prompt/storyprompt/dialog_options.go | NewFilterOption | func NewFilterOption() *DialogOption {
return &DialogOption{
Description: []string{
"Insert a regular expression to filter the story list.",
"(case insensitive match against the story title)",
},
IsActive: func(stories []common.Story, depth int) bool {
return len(stories) != 0
},
MatchesInput: func(input string, stories []common.Story) bool {
return true
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Printf("Using '%v' to filter stories ...\n", input)
fmt.Println()
filter, err := regexp.Compile("(?i)" + input)
if err != nil {
return nil, err
}
filteredStories := common.FilterStories(stories, func(story common.Story) bool {
return filter.MatchString(story.Title())
})
subdialog := currentDialog.NewSubdialog()
subdialog.opts = currentDialog.opts
return subdialog.Run(filteredStories)
},
}
} | go | func NewFilterOption() *DialogOption {
return &DialogOption{
Description: []string{
"Insert a regular expression to filter the story list.",
"(case insensitive match against the story title)",
},
IsActive: func(stories []common.Story, depth int) bool {
return len(stories) != 0
},
MatchesInput: func(input string, stories []common.Story) bool {
return true
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Printf("Using '%v' to filter stories ...\n", input)
fmt.Println()
filter, err := regexp.Compile("(?i)" + input)
if err != nil {
return nil, err
}
filteredStories := common.FilterStories(stories, func(story common.Story) bool {
return filter.MatchString(story.Title())
})
subdialog := currentDialog.NewSubdialog()
subdialog.opts = currentDialog.opts
return subdialog.Run(filteredStories)
},
}
} | [
"func",
"NewFilterOption",
"(",
")",
"*",
"DialogOption",
"{",
"return",
"&",
"DialogOption",
"{",
"Description",
":",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"\"",
"\"",
",",
"}",
",",
"IsActive",
":",
"func",
"(",
"stories",
"[",
"]",
"common",
"... | // NewFilterOption returns an option that can be used to filter stories
// by matching the title against the given regexp. | [
"NewFilterOption",
"returns",
"an",
"option",
"that",
"can",
"be",
"used",
"to",
"filter",
"stories",
"by",
"matching",
"the",
"title",
"against",
"the",
"given",
"regexp",
"."
] | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/prompt/storyprompt/dialog_options.go#L43-L78 |
154,601 | salsaflow/salsaflow | prompt/storyprompt/dialog_options.go | NewReturnOrAbortOptions | func NewReturnOrAbortOptions() []*DialogOption {
return []*DialogOption{
&DialogOption{
Description: []string{
"Press Enter to return to the previous dialog.",
},
IsActive: func(stories []common.Story, depth int) bool {
return depth != 1
},
MatchesInput: func(input string, stories []common.Story) bool {
return input == ""
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Println("Going back to the previous dialog ...")
return nil, ErrReturn
},
},
&DialogOption{
Description: []string{
"Insert 'q' to abort the dialog.",
},
IsActive: func(stories []common.Story, depth int) bool {
return depth != 1
},
MatchesInput: func(input string, stories []common.Story) bool {
return input == "q"
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Println("Aborting the dialog ...")
return nil, ErrAbort
},
},
&DialogOption{
Description: []string{
"Press Enter or insert 'q' to abort the dialog.",
},
IsActive: func(stories []common.Story, depth int) bool {
return depth == 1
},
MatchesInput: func(input string, stories []common.Story) bool {
return input == "" || input == "q"
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Println("Aborting the dialog ...")
return nil, ErrAbort
},
},
}
} | go | func NewReturnOrAbortOptions() []*DialogOption {
return []*DialogOption{
&DialogOption{
Description: []string{
"Press Enter to return to the previous dialog.",
},
IsActive: func(stories []common.Story, depth int) bool {
return depth != 1
},
MatchesInput: func(input string, stories []common.Story) bool {
return input == ""
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Println("Going back to the previous dialog ...")
return nil, ErrReturn
},
},
&DialogOption{
Description: []string{
"Insert 'q' to abort the dialog.",
},
IsActive: func(stories []common.Story, depth int) bool {
return depth != 1
},
MatchesInput: func(input string, stories []common.Story) bool {
return input == "q"
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Println("Aborting the dialog ...")
return nil, ErrAbort
},
},
&DialogOption{
Description: []string{
"Press Enter or insert 'q' to abort the dialog.",
},
IsActive: func(stories []common.Story, depth int) bool {
return depth == 1
},
MatchesInput: func(input string, stories []common.Story) bool {
return input == "" || input == "q"
},
SelectStory: func(
input string,
stories []common.Story,
currentDialog *Dialog,
) (common.Story, error) {
fmt.Println()
fmt.Println("Aborting the dialog ...")
return nil, ErrAbort
},
},
}
} | [
"func",
"NewReturnOrAbortOptions",
"(",
")",
"[",
"]",
"*",
"DialogOption",
"{",
"return",
"[",
"]",
"*",
"DialogOption",
"{",
"&",
"DialogOption",
"{",
"Description",
":",
"[",
"]",
"string",
"{",
"\"",
"\"",
",",
"}",
",",
"IsActive",
":",
"func",
"(... | // NewReturnOrAbortOptions returns a set of options that handle
//
// - press Enter -> return one level up
// - insert 'q' -> abort the dialog | [
"NewReturnOrAbortOptions",
"returns",
"a",
"set",
"of",
"options",
"that",
"handle",
"-",
"press",
"Enter",
"-",
">",
"return",
"one",
"level",
"up",
"-",
"insert",
"q",
"-",
">",
"abort",
"the",
"dialog"
] | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/prompt/storyprompt/dialog_options.go#L84-L150 |
154,602 | seven5/seven5 | iohook.go | BodyHook | func (self *RawIOHook) BodyHook(r *http.Request, obj *restShared) (interface{}, error) {
limitedData := make([]byte, MAX_FORM_SIZE)
curr := 0
gotEof := false
for curr < len(limitedData) {
n, err := r.Body.Read(limitedData[curr:])
curr += n
if err != nil && err == io.EOF {
gotEof = true
break
}
if err != nil {
return nil, err
}
}
//if curr==0 then we are done because there is no body
if curr == 0 {
return nil, nil
}
if !gotEof {
return nil, errors.New(fmt.Sprintf("Body is too large! max is %d", MAX_FORM_SIZE))
}
//we have a body of data, need to decode it... first allocate one
strukt := obj.typ.Elem() //we have checked that this is a ptr to struct at insert
wireObj := reflect.New(strukt)
if err := self.Dec.Decode(limitedData[:curr], wireObj.Interface()); err != nil {
return nil, err
}
return wireObj.Interface(), nil
} | go | func (self *RawIOHook) BodyHook(r *http.Request, obj *restShared) (interface{}, error) {
limitedData := make([]byte, MAX_FORM_SIZE)
curr := 0
gotEof := false
for curr < len(limitedData) {
n, err := r.Body.Read(limitedData[curr:])
curr += n
if err != nil && err == io.EOF {
gotEof = true
break
}
if err != nil {
return nil, err
}
}
//if curr==0 then we are done because there is no body
if curr == 0 {
return nil, nil
}
if !gotEof {
return nil, errors.New(fmt.Sprintf("Body is too large! max is %d", MAX_FORM_SIZE))
}
//we have a body of data, need to decode it... first allocate one
strukt := obj.typ.Elem() //we have checked that this is a ptr to struct at insert
wireObj := reflect.New(strukt)
if err := self.Dec.Decode(limitedData[:curr], wireObj.Interface()); err != nil {
return nil, err
}
return wireObj.Interface(), nil
} | [
"func",
"(",
"self",
"*",
"RawIOHook",
")",
"BodyHook",
"(",
"r",
"*",
"http",
".",
"Request",
",",
"obj",
"*",
"restShared",
")",
"(",
"interface",
"{",
"}",
",",
"error",
")",
"{",
"limitedData",
":=",
"make",
"(",
"[",
"]",
"byte",
",",
"MAX_FOR... | //BodyHook is called to create a wire object of the appopriate type and fill in the values
//in that object from the request body. BodyHook calls the decoder provided at creation time
//take the bytes provided by the body and initialize the object that is ultimately returned. | [
"BodyHook",
"is",
"called",
"to",
"create",
"a",
"wire",
"object",
"of",
"the",
"appopriate",
"type",
"and",
"fill",
"in",
"the",
"values",
"in",
"that",
"object",
"from",
"the",
"request",
"body",
".",
"BodyHook",
"calls",
"the",
"decoder",
"provided",
"a... | 19fef7e1f781b14fc25f545e580cb13f6f11634b | https://github.com/seven5/seven5/blob/19fef7e1f781b14fc25f545e580cb13f6f11634b/iohook.go#L52-L81 |
154,603 | seven5/seven5 | iohook.go | SendHook | func (self *RawIOHook) SendHook(d *restShared, w http.ResponseWriter, pb PBundle, i interface{}, location string) {
if err := self.verifyReturnType(d, i); err != nil {
http.Error(w, fmt.Sprintf("%s", err), http.StatusExpectationFailed)
return
}
encoded, err := self.Enc.Encode(i, true)
if err != nil {
http.Error(w, fmt.Sprintf("unable to encode: %s", err), http.StatusInternalServerError)
return
}
for _, k := range pb.ReturnHeaders() {
w.Header().Add(k, pb.ReturnHeader(k))
}
w.Header().Add("Content-Type", "text/json")
if location != "" {
w.Header().Add("Location", location)
w.WriteHeader(http.StatusCreated)
} else {
w.WriteHeader(http.StatusOK)
}
_, err = w.Write([]byte(encoded))
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to write to client connection: %s\n", err)
}
} | go | func (self *RawIOHook) SendHook(d *restShared, w http.ResponseWriter, pb PBundle, i interface{}, location string) {
if err := self.verifyReturnType(d, i); err != nil {
http.Error(w, fmt.Sprintf("%s", err), http.StatusExpectationFailed)
return
}
encoded, err := self.Enc.Encode(i, true)
if err != nil {
http.Error(w, fmt.Sprintf("unable to encode: %s", err), http.StatusInternalServerError)
return
}
for _, k := range pb.ReturnHeaders() {
w.Header().Add(k, pb.ReturnHeader(k))
}
w.Header().Add("Content-Type", "text/json")
if location != "" {
w.Header().Add("Location", location)
w.WriteHeader(http.StatusCreated)
} else {
w.WriteHeader(http.StatusOK)
}
_, err = w.Write([]byte(encoded))
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to write to client connection: %s\n", err)
}
} | [
"func",
"(",
"self",
"*",
"RawIOHook",
")",
"SendHook",
"(",
"d",
"*",
"restShared",
",",
"w",
"http",
".",
"ResponseWriter",
",",
"pb",
"PBundle",
",",
"i",
"interface",
"{",
"}",
",",
"location",
"string",
")",
"{",
"if",
"err",
":=",
"self",
".",
... | //SendHook is called to encode and write the object provided onto the output via the response
//writer. The last parameter if not "" is assumed to be a location header. If the location
//parameter is provided, then the response code is "Created" otherwise "OK" is returned.
//SendHook calls the encoder for the encoding of the object into a sequence of bytes for transmission.
//If the pb is not null, then the SendHook should examine it for outgoing headers, trailers, and
//transmit them. | [
"SendHook",
"is",
"called",
"to",
"encode",
"and",
"write",
"the",
"object",
"provided",
"onto",
"the",
"output",
"via",
"the",
"response",
"writer",
".",
"The",
"last",
"parameter",
"if",
"not",
"is",
"assumed",
"to",
"be",
"a",
"location",
"header",
".",... | 19fef7e1f781b14fc25f545e580cb13f6f11634b | https://github.com/seven5/seven5/blob/19fef7e1f781b14fc25f545e580cb13f6f11634b/iohook.go#L141-L165 |
154,604 | salsaflow/salsaflow | Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/projects.go | List | func (service *ProjectService) List() ([]*Project, *http.Response, error) {
req, err := service.client.NewRequest("GET", "projects", nil)
if err != nil {
return nil, nil, err
}
var projects []*Project
resp, err := service.client.Do(req, &projects)
if err != nil {
return nil, resp, err
}
return projects, resp, err
} | go | func (service *ProjectService) List() ([]*Project, *http.Response, error) {
req, err := service.client.NewRequest("GET", "projects", nil)
if err != nil {
return nil, nil, err
}
var projects []*Project
resp, err := service.client.Do(req, &projects)
if err != nil {
return nil, resp, err
}
return projects, resp, err
} | [
"func",
"(",
"service",
"*",
"ProjectService",
")",
"List",
"(",
")",
"(",
"[",
"]",
"*",
"Project",
",",
"*",
"http",
".",
"Response",
",",
"error",
")",
"{",
"req",
",",
"err",
":=",
"service",
".",
"client",
".",
"NewRequest",
"(",
"\"",
"\"",
... | // List returns all active projects for the current user. | [
"List",
"returns",
"all",
"active",
"projects",
"for",
"the",
"current",
"user",
"."
] | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/projects.go#L89-L102 |
154,605 | salsaflow/salsaflow | git/git.go | IsBranchSynchronized | func IsBranchSynchronized(branch, remote string) (bool, error) {
exists, err := RemoteBranchExists(branch, remote)
if err != nil {
return false, err
}
if !exists {
return true, nil
}
var (
localRef = "refs/heads/" + branch
remoteRef = "refs/remotes/" + remote + "/" + branch
)
localHexsha, err := Hexsha(localRef)
if err != nil {
return false, err
}
remoteHexsha, err := Hexsha(remoteRef)
if err != nil {
return false, err
}
return localHexsha == remoteHexsha, nil
} | go | func IsBranchSynchronized(branch, remote string) (bool, error) {
exists, err := RemoteBranchExists(branch, remote)
if err != nil {
return false, err
}
if !exists {
return true, nil
}
var (
localRef = "refs/heads/" + branch
remoteRef = "refs/remotes/" + remote + "/" + branch
)
localHexsha, err := Hexsha(localRef)
if err != nil {
return false, err
}
remoteHexsha, err := Hexsha(remoteRef)
if err != nil {
return false, err
}
return localHexsha == remoteHexsha, nil
} | [
"func",
"IsBranchSynchronized",
"(",
"branch",
",",
"remote",
"string",
")",
"(",
"bool",
",",
"error",
")",
"{",
"exists",
",",
"err",
":=",
"RemoteBranchExists",
"(",
"branch",
",",
"remote",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"false",... | // IsBranchSynchronized returns true when the branch of the given name
// is up to date with the given remote. In case the branch does not exist
// in the remote repository, true is returned as well. | [
"IsBranchSynchronized",
"returns",
"true",
"when",
"the",
"branch",
"of",
"the",
"given",
"name",
"is",
"up",
"to",
"date",
"with",
"the",
"given",
"remote",
".",
"In",
"case",
"the",
"branch",
"does",
"not",
"exist",
"in",
"the",
"remote",
"repository",
"... | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/git/git.go#L235-L258 |
154,606 | seven5/seven5 | cookie.go | NewSimpleCookieMapper | func NewSimpleCookieMapper(appName string) CookieMapper {
result := &SimpleCookieMapper{
cook: fmt.Sprintf(SESSION_COOKIE, appName),
}
return result
} | go | func NewSimpleCookieMapper(appName string) CookieMapper {
result := &SimpleCookieMapper{
cook: fmt.Sprintf(SESSION_COOKIE, appName),
}
return result
} | [
"func",
"NewSimpleCookieMapper",
"(",
"appName",
"string",
")",
"CookieMapper",
"{",
"result",
":=",
"&",
"SimpleCookieMapper",
"{",
"cook",
":",
"fmt",
".",
"Sprintf",
"(",
"SESSION_COOKIE",
",",
"appName",
")",
",",
"}",
"\n",
"return",
"result",
"\n",
"}"... | //NewSimpleCookieMapper creates an instance of CookieMapper with the given application name. | [
"NewSimpleCookieMapper",
"creates",
"an",
"instance",
"of",
"CookieMapper",
"with",
"the",
"given",
"application",
"name",
"."
] | 19fef7e1f781b14fc25f545e580cb13f6f11634b | https://github.com/seven5/seven5/blob/19fef7e1f781b14fc25f545e580cb13f6f11634b/cookie.go#L36-L41 |
154,607 | seven5/seven5 | cookie.go | AssociateCookie | func (self *SimpleCookieMapper) AssociateCookie(w http.ResponseWriter, s Session) {
cookie := &http.Cookie{
Name: self.CookieName(),
Value: s.SessionId(),
Path: "/",
}
http.SetCookie(w, cookie)
} | go | func (self *SimpleCookieMapper) AssociateCookie(w http.ResponseWriter, s Session) {
cookie := &http.Cookie{
Name: self.CookieName(),
Value: s.SessionId(),
Path: "/",
}
http.SetCookie(w, cookie)
} | [
"func",
"(",
"self",
"*",
"SimpleCookieMapper",
")",
"AssociateCookie",
"(",
"w",
"http",
".",
"ResponseWriter",
",",
"s",
"Session",
")",
"{",
"cookie",
":=",
"&",
"http",
".",
"Cookie",
"{",
"Name",
":",
"self",
".",
"CookieName",
"(",
")",
",",
"Val... | //AssociateCookie is used to effectively "Log in" a particular user by associating a session
//with a response w that will be sent back to their browser. | [
"AssociateCookie",
"is",
"used",
"to",
"effectively",
"Log",
"in",
"a",
"particular",
"user",
"by",
"associating",
"a",
"session",
"with",
"a",
"response",
"w",
"that",
"will",
"be",
"sent",
"back",
"to",
"their",
"browser",
"."
] | 19fef7e1f781b14fc25f545e580cb13f6f11634b | https://github.com/seven5/seven5/blob/19fef7e1f781b14fc25f545e580cb13f6f11634b/cookie.go#L45-L52 |
154,608 | seven5/seven5 | cookie.go | RemoveCookie | func (self *SimpleCookieMapper) RemoveCookie(w http.ResponseWriter) {
cookie := &http.Cookie{
Name: self.CookieName(),
Value: "",
Path: "/",
MaxAge: -1,
}
http.SetCookie(w, cookie)
} | go | func (self *SimpleCookieMapper) RemoveCookie(w http.ResponseWriter) {
cookie := &http.Cookie{
Name: self.CookieName(),
Value: "",
Path: "/",
MaxAge: -1,
}
http.SetCookie(w, cookie)
} | [
"func",
"(",
"self",
"*",
"SimpleCookieMapper",
")",
"RemoveCookie",
"(",
"w",
"http",
".",
"ResponseWriter",
")",
"{",
"cookie",
":=",
"&",
"http",
".",
"Cookie",
"{",
"Name",
":",
"self",
".",
"CookieName",
"(",
")",
",",
"Value",
":",
"\"",
"\"",
... | //RemoveCookie is used to effectively "Log out" a particular user by removing the association of a session
//with a response w that will be sent back to their browser. | [
"RemoveCookie",
"is",
"used",
"to",
"effectively",
"Log",
"out",
"a",
"particular",
"user",
"by",
"removing",
"the",
"association",
"of",
"a",
"session",
"with",
"a",
"response",
"w",
"that",
"will",
"be",
"sent",
"back",
"to",
"their",
"browser",
"."
] | 19fef7e1f781b14fc25f545e580cb13f6f11634b | https://github.com/seven5/seven5/blob/19fef7e1f781b14fc25f545e580cb13f6f11634b/cookie.go#L56-L64 |
154,609 | seven5/seven5 | cookie.go | Value | func (self *SimpleCookieMapper) Value(r *http.Request) (string, error) {
c, err := r.Cookie(self.CookieName())
if err == http.ErrNoCookie {
return "", NO_SUCH_COOKIE
}
return strings.TrimSpace(c.Value), nil
} | go | func (self *SimpleCookieMapper) Value(r *http.Request) (string, error) {
c, err := r.Cookie(self.CookieName())
if err == http.ErrNoCookie {
return "", NO_SUCH_COOKIE
}
return strings.TrimSpace(c.Value), nil
} | [
"func",
"(",
"self",
"*",
"SimpleCookieMapper",
")",
"Value",
"(",
"r",
"*",
"http",
".",
"Request",
")",
"(",
"string",
",",
"error",
")",
"{",
"c",
",",
"err",
":=",
"r",
".",
"Cookie",
"(",
"self",
".",
"CookieName",
"(",
")",
")",
"\n",
"if",... | //Value returns the cookie value associated with a given request or an error if that cookie is not
//present. Usually the value is the UDID of the session. | [
"Value",
"returns",
"the",
"cookie",
"value",
"associated",
"with",
"a",
"given",
"request",
"or",
"an",
"error",
"if",
"that",
"cookie",
"is",
"not",
"present",
".",
"Usually",
"the",
"value",
"is",
"the",
"UDID",
"of",
"the",
"session",
"."
] | 19fef7e1f781b14fc25f545e580cb13f6f11634b | https://github.com/seven5/seven5/blob/19fef7e1f781b14fc25f545e580cb13f6f11634b/cookie.go#L68-L74 |
154,610 | salsaflow/salsaflow | Godeps/_workspace/src/golang.org/x/oauth2/google/jwt.go | JWTAccessTokenSourceFromJSON | func JWTAccessTokenSourceFromJSON(jsonKey []byte, audience string) (oauth2.TokenSource, error) {
cfg, err := JWTConfigFromJSON(jsonKey)
if err != nil {
return nil, fmt.Errorf("google: could not parse JSON key: %v", err)
}
pk, err := internal.ParseKey(cfg.PrivateKey)
if err != nil {
return nil, fmt.Errorf("google: could not parse key: %v", err)
}
ts := &jwtAccessTokenSource{
email: cfg.Email,
audience: audience,
pk: pk,
}
tok, err := ts.Token()
if err != nil {
return nil, err
}
return oauth2.ReuseTokenSource(tok, ts), nil
} | go | func JWTAccessTokenSourceFromJSON(jsonKey []byte, audience string) (oauth2.TokenSource, error) {
cfg, err := JWTConfigFromJSON(jsonKey)
if err != nil {
return nil, fmt.Errorf("google: could not parse JSON key: %v", err)
}
pk, err := internal.ParseKey(cfg.PrivateKey)
if err != nil {
return nil, fmt.Errorf("google: could not parse key: %v", err)
}
ts := &jwtAccessTokenSource{
email: cfg.Email,
audience: audience,
pk: pk,
}
tok, err := ts.Token()
if err != nil {
return nil, err
}
return oauth2.ReuseTokenSource(tok, ts), nil
} | [
"func",
"JWTAccessTokenSourceFromJSON",
"(",
"jsonKey",
"[",
"]",
"byte",
",",
"audience",
"string",
")",
"(",
"oauth2",
".",
"TokenSource",
",",
"error",
")",
"{",
"cfg",
",",
"err",
":=",
"JWTConfigFromJSON",
"(",
"jsonKey",
")",
"\n",
"if",
"err",
"!=",... | // JWTAccessTokenSourceFromJSON uses a Google Developers service account JSON
// key file to read the credentials that authorize and authenticate the
// requests, and returns a TokenSource that does not use any OAuth2 flow but
// instead creates a JWT and sends that as the access token.
// The audience is typically a URL that specifies the scope of the credentials.
//
// Note that this is not a standard OAuth flow, but rather an
// optimization supported by a few Google services.
// Unless you know otherwise, you should use JWTConfigFromJSON instead. | [
"JWTAccessTokenSourceFromJSON",
"uses",
"a",
"Google",
"Developers",
"service",
"account",
"JSON",
"key",
"file",
"to",
"read",
"the",
"credentials",
"that",
"authorize",
"and",
"authenticate",
"the",
"requests",
"and",
"returns",
"a",
"TokenSource",
"that",
"does",... | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/Godeps/_workspace/src/golang.org/x/oauth2/google/jwt.go#L26-L45 |
154,611 | itchio/httpkit | htfs/file.go | NumConns | func (f *File) NumConns() int {
f.connsLock.Lock()
defer f.connsLock.Unlock()
return len(f.conns)
} | go | func (f *File) NumConns() int {
f.connsLock.Lock()
defer f.connsLock.Unlock()
return len(f.conns)
} | [
"func",
"(",
"f",
"*",
"File",
")",
"NumConns",
"(",
")",
"int",
"{",
"f",
".",
"connsLock",
".",
"Lock",
"(",
")",
"\n",
"defer",
"f",
".",
"connsLock",
".",
"Unlock",
"(",
")",
"\n\n",
"return",
"len",
"(",
"f",
".",
"conns",
")",
"\n",
"}"
] | // NumConns returns the number of connections currently used by the File
// to serve ReadAt calls | [
"NumConns",
"returns",
"the",
"number",
"of",
"connections",
"currently",
"used",
"by",
"the",
"File",
"to",
"serve",
"ReadAt",
"calls"
] | f7051ef345456d077d49344cf6ec98b4059214f5 | https://github.com/itchio/httpkit/blob/f7051ef345456d077d49344cf6ec98b4059214f5/htfs/file.go#L233-L238 |
154,612 | itchio/httpkit | htfs/file.go | Seek | func (f *File) Seek(offset int64, whence int) (int64, error) {
var newOffset int64
switch whence {
case os.SEEK_SET:
newOffset = offset
case os.SEEK_END:
newOffset = f.size + offset
case os.SEEK_CUR:
newOffset = f.offset + offset
default:
return f.offset, fmt.Errorf("invalid whence value %d", whence)
}
if newOffset < 0 {
newOffset = 0
}
if newOffset > f.size {
newOffset = f.size
}
f.offset = newOffset
return f.offset, nil
} | go | func (f *File) Seek(offset int64, whence int) (int64, error) {
var newOffset int64
switch whence {
case os.SEEK_SET:
newOffset = offset
case os.SEEK_END:
newOffset = f.size + offset
case os.SEEK_CUR:
newOffset = f.offset + offset
default:
return f.offset, fmt.Errorf("invalid whence value %d", whence)
}
if newOffset < 0 {
newOffset = 0
}
if newOffset > f.size {
newOffset = f.size
}
f.offset = newOffset
return f.offset, nil
} | [
"func",
"(",
"f",
"*",
"File",
")",
"Seek",
"(",
"offset",
"int64",
",",
"whence",
"int",
")",
"(",
"int64",
",",
"error",
")",
"{",
"var",
"newOffset",
"int64",
"\n\n",
"switch",
"whence",
"{",
"case",
"os",
".",
"SEEK_SET",
":",
"newOffset",
"=",
... | // Seek the read head within the file - it's instant and never returns an
// error, except if whence is one of os.SEEK_SET, os.SEEK_END, or os.SEEK_CUR.
// If an invalid offset is given, it will be truncated to a valid one, between
// [0,size). | [
"Seek",
"the",
"read",
"head",
"within",
"the",
"file",
"-",
"it",
"s",
"instant",
"and",
"never",
"returns",
"an",
"error",
"except",
"if",
"whence",
"is",
"one",
"of",
"os",
".",
"SEEK_SET",
"os",
".",
"SEEK_END",
"or",
"os",
".",
"SEEK_CUR",
".",
... | f7051ef345456d077d49344cf6ec98b4059214f5 | https://github.com/itchio/httpkit/blob/f7051ef345456d077d49344cf6ec98b4059214f5/htfs/file.go#L405-L429 |
154,613 | itchio/httpkit | htfs/file.go | Close | func (f *File) Close() error {
f.connsLock.Lock()
defer f.connsLock.Unlock()
if f.closed {
return nil
}
err := f.closeAllConns()
if err != nil {
return err
}
if f.DumpStats {
fetchedBytes := f.stats.fetchedBytes
log.Printf("====== htfs stats for %s", f.name)
log.Printf("= conns: %d total, %d expired, %d renews, wait %s", f.stats.connections, f.stats.expired, f.stats.renews, f.stats.connectionWait)
size := f.size
perc := 0.0
percCached := 0.0
if size != 0 {
perc = float64(fetchedBytes) / float64(size) * 100.0
}
totalServedBytes := fetchedBytes
percCached = float64(f.stats.cachedBytes) / float64(totalServedBytes) * 100.0
log.Printf("= fetched: %s / %s (%.2f%%)", progress.FormatBytes(fetchedBytes), progress.FormatBytes(size), perc)
log.Printf("= served from cache: %s (%.2f%% of all served bytes)", progress.FormatBytes(f.stats.cachedBytes), percCached)
totalReads := f.stats.numCacheHits + f.stats.numCacheMiss
if totalReads == 0 {
totalReads = -1 // avoid NaN hit rate
}
hitRate := float64(f.stats.numCacheHits) / float64(totalReads) * 100.0
log.Printf("= cache hit rate: %.2f%% (out of %d reads)", hitRate, totalReads)
log.Printf("========================================")
}
f.closed = true
return nil
} | go | func (f *File) Close() error {
f.connsLock.Lock()
defer f.connsLock.Unlock()
if f.closed {
return nil
}
err := f.closeAllConns()
if err != nil {
return err
}
if f.DumpStats {
fetchedBytes := f.stats.fetchedBytes
log.Printf("====== htfs stats for %s", f.name)
log.Printf("= conns: %d total, %d expired, %d renews, wait %s", f.stats.connections, f.stats.expired, f.stats.renews, f.stats.connectionWait)
size := f.size
perc := 0.0
percCached := 0.0
if size != 0 {
perc = float64(fetchedBytes) / float64(size) * 100.0
}
totalServedBytes := fetchedBytes
percCached = float64(f.stats.cachedBytes) / float64(totalServedBytes) * 100.0
log.Printf("= fetched: %s / %s (%.2f%%)", progress.FormatBytes(fetchedBytes), progress.FormatBytes(size), perc)
log.Printf("= served from cache: %s (%.2f%% of all served bytes)", progress.FormatBytes(f.stats.cachedBytes), percCached)
totalReads := f.stats.numCacheHits + f.stats.numCacheMiss
if totalReads == 0 {
totalReads = -1 // avoid NaN hit rate
}
hitRate := float64(f.stats.numCacheHits) / float64(totalReads) * 100.0
log.Printf("= cache hit rate: %.2f%% (out of %d reads)", hitRate, totalReads)
log.Printf("========================================")
}
f.closed = true
return nil
} | [
"func",
"(",
"f",
"*",
"File",
")",
"Close",
"(",
")",
"error",
"{",
"f",
".",
"connsLock",
".",
"Lock",
"(",
")",
"\n",
"defer",
"f",
".",
"connsLock",
".",
"Unlock",
"(",
")",
"\n\n",
"if",
"f",
".",
"closed",
"{",
"return",
"nil",
"\n",
"}",... | // Close closes all connections to the distant http server used by this File | [
"Close",
"closes",
"all",
"connections",
"to",
"the",
"distant",
"http",
"server",
"used",
"by",
"this",
"File"
] | f7051ef345456d077d49344cf6ec98b4059214f5 | https://github.com/itchio/httpkit/blob/f7051ef345456d077d49344cf6ec98b4059214f5/htfs/file.go#L605-L647 |
154,614 | salsaflow/salsaflow | Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/stories.go | List | func (service *StoryService) List(projectId int, filter string) ([]*Story, error) {
reqFunc := newStoriesRequestFunc(service.client, projectId, filter)
cursor, err := newCursor(service.client, reqFunc, 0)
if err != nil {
return nil, err
}
var stories []*Story
if err := cursor.all(&stories); err != nil {
return nil, err
}
return stories, nil
} | go | func (service *StoryService) List(projectId int, filter string) ([]*Story, error) {
reqFunc := newStoriesRequestFunc(service.client, projectId, filter)
cursor, err := newCursor(service.client, reqFunc, 0)
if err != nil {
return nil, err
}
var stories []*Story
if err := cursor.all(&stories); err != nil {
return nil, err
}
return stories, nil
} | [
"func",
"(",
"service",
"*",
"StoryService",
")",
"List",
"(",
"projectId",
"int",
",",
"filter",
"string",
")",
"(",
"[",
"]",
"*",
"Story",
",",
"error",
")",
"{",
"reqFunc",
":=",
"newStoriesRequestFunc",
"(",
"service",
".",
"client",
",",
"projectId... | // List returns all stories matching the filter in case the filter is specified.
//
// List actually sends 2 HTTP requests - one to get the total number of stories,
// another to retrieve the stories using the right pagination setup. The reason
// for this is that the filter might require to fetch all the stories at once
// to get the right results. Since the response as generated by Pivotal Tracker
// is not always sorted when using a filter, this approach is required to get
// the right data. Not sure whether this is a bug or a feature. | [
"List",
"returns",
"all",
"stories",
"matching",
"the",
"filter",
"in",
"case",
"the",
"filter",
"is",
"specified",
".",
"List",
"actually",
"sends",
"2",
"HTTP",
"requests",
"-",
"one",
"to",
"get",
"the",
"total",
"number",
"of",
"stories",
"another",
"t... | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/stories.go#L135-L147 |
154,615 | salsaflow/salsaflow | Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/stories.go | Next | func (c *StoryCursor) Next() (s *Story, err error) {
if len(c.buff) == 0 {
_, err = c.next(&c.buff)
if err != nil {
return nil, err
}
}
if len(c.buff) == 0 {
err = io.EOF
} else {
s, c.buff = c.buff[0], c.buff[1:]
}
return s, err
} | go | func (c *StoryCursor) Next() (s *Story, err error) {
if len(c.buff) == 0 {
_, err = c.next(&c.buff)
if err != nil {
return nil, err
}
}
if len(c.buff) == 0 {
err = io.EOF
} else {
s, c.buff = c.buff[0], c.buff[1:]
}
return s, err
} | [
"func",
"(",
"c",
"*",
"StoryCursor",
")",
"Next",
"(",
")",
"(",
"s",
"*",
"Story",
",",
"err",
"error",
")",
"{",
"if",
"len",
"(",
"c",
".",
"buff",
")",
"==",
"0",
"{",
"_",
",",
"err",
"=",
"c",
".",
"next",
"(",
"&",
"c",
".",
"buff... | // Next returns the next story.
//
// In case there are no more stories, io.EOF is returned as an error. | [
"Next",
"returns",
"the",
"next",
"story",
".",
"In",
"case",
"there",
"are",
"no",
"more",
"stories",
"io",
".",
"EOF",
"is",
"returned",
"as",
"an",
"error",
"."
] | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/stories.go#L168-L182 |
154,616 | salsaflow/salsaflow | Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/stories.go | Iterate | func (service *StoryService) Iterate(projectId int, filter string) (c *StoryCursor, err error) {
reqFunc := newStoriesRequestFunc(service.client, projectId, filter)
cursor, err := newCursor(service.client, reqFunc, PageLimit)
if err != nil {
return nil, err
}
return &StoryCursor{cursor, make([]*Story, 0)}, nil
} | go | func (service *StoryService) Iterate(projectId int, filter string) (c *StoryCursor, err error) {
reqFunc := newStoriesRequestFunc(service.client, projectId, filter)
cursor, err := newCursor(service.client, reqFunc, PageLimit)
if err != nil {
return nil, err
}
return &StoryCursor{cursor, make([]*Story, 0)}, nil
} | [
"func",
"(",
"service",
"*",
"StoryService",
")",
"Iterate",
"(",
"projectId",
"int",
",",
"filter",
"string",
")",
"(",
"c",
"*",
"StoryCursor",
",",
"err",
"error",
")",
"{",
"reqFunc",
":=",
"newStoriesRequestFunc",
"(",
"service",
".",
"client",
",",
... | // Iterate returns a cursor that can be used to iterate over the stories specified
// by the filter. More stories are fetched on demand as needed. | [
"Iterate",
"returns",
"a",
"cursor",
"that",
"can",
"be",
"used",
"to",
"iterate",
"over",
"the",
"stories",
"specified",
"by",
"the",
"filter",
".",
"More",
"stories",
"are",
"fetched",
"on",
"demand",
"as",
"needed",
"."
] | 1bc3d9415e3e35b5aad7b724c2955b1f53ccd145 | https://github.com/salsaflow/salsaflow/blob/1bc3d9415e3e35b5aad7b724c2955b1f53ccd145/Godeps/_workspace/src/gopkg.in/salsita/go-pivotaltracker.v1/v5/pivotal/stories.go#L186-L193 |
154,617 | dorzheh/infra | utils/hostutils/hostname.go | SetHostname | func SetHostname(hostname string) error {
if err := utils.ValidateHostname(hostname); err != nil {
return err
}
for _, leaf := range template {
for key, val := range leaf {
if key == "RELEASE_FILE" {
if _, err := os.Stat(val.(string)); err == nil {
if err := leaf["SET_HOSTNAME_FUNC"].(func(string, string) error)(hostname, leaf["HOST_FILE"].(string)); err != nil {
return err
}
}
}
}
}
return syscall.Sethostname([]byte(hostname))
} | go | func SetHostname(hostname string) error {
if err := utils.ValidateHostname(hostname); err != nil {
return err
}
for _, leaf := range template {
for key, val := range leaf {
if key == "RELEASE_FILE" {
if _, err := os.Stat(val.(string)); err == nil {
if err := leaf["SET_HOSTNAME_FUNC"].(func(string, string) error)(hostname, leaf["HOST_FILE"].(string)); err != nil {
return err
}
}
}
}
}
return syscall.Sethostname([]byte(hostname))
} | [
"func",
"SetHostname",
"(",
"hostname",
"string",
")",
"error",
"{",
"if",
"err",
":=",
"utils",
".",
"ValidateHostname",
"(",
"hostname",
")",
";",
"err",
"!=",
"nil",
"{",
"return",
"err",
"\n",
"}",
"\n",
"for",
"_",
",",
"leaf",
":=",
"range",
"t... | // SetHostname - main wrapper for the host configuration | [
"SetHostname",
"-",
"main",
"wrapper",
"for",
"the",
"host",
"configuration"
] | 7a1321c45e855829b2ae9c506f1531d018b2c145 | https://github.com/dorzheh/infra/blob/7a1321c45e855829b2ae9c506f1531d018b2c145/utils/hostutils/hostname.go#L30-L46 |
154,618 | dorzheh/infra | utils/hostutils/hostname.go | SetHosts | func SetHosts(hostname, ipv4 string) error {
fd, err := os.OpenFile("/etc/hosts", os.O_RDWR, 0644)
if err != nil {
return err
}
defer fd.Close()
newString := fmt.Sprintf("\n%s\t%s\n", ipv4, hostname)
patToCheck := ipv4 + `\s+` + hostname
return ioutils.AppendToFd(fd, newString, patToCheck)
} | go | func SetHosts(hostname, ipv4 string) error {
fd, err := os.OpenFile("/etc/hosts", os.O_RDWR, 0644)
if err != nil {
return err
}
defer fd.Close()
newString := fmt.Sprintf("\n%s\t%s\n", ipv4, hostname)
patToCheck := ipv4 + `\s+` + hostname
return ioutils.AppendToFd(fd, newString, patToCheck)
} | [
"func",
"SetHosts",
"(",
"hostname",
",",
"ipv4",
"string",
")",
"error",
"{",
"fd",
",",
"err",
":=",
"os",
".",
"OpenFile",
"(",
"\"",
"\"",
",",
"os",
".",
"O_RDWR",
",",
"0644",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"err",
"\n",... | // SetHosts inyended for the hosts file configuration | [
"SetHosts",
"inyended",
"for",
"the",
"hosts",
"file",
"configuration"
] | 7a1321c45e855829b2ae9c506f1531d018b2c145 | https://github.com/dorzheh/infra/blob/7a1321c45e855829b2ae9c506f1531d018b2c145/utils/hostutils/hostname.go#L49-L58 |
154,619 | dorzheh/infra | utils/hostutils/hostname.go | SetHostsDefault | func SetHostsDefault(defaultIface string, force bool) error {
hname, err := os.Hostname()
if err != nil {
return err
}
if _, err := net.LookupHost(hname); err == nil {
if force == false {
return nil
}
}
iface, err := netutils.GetIfaceAddr(defaultIface)
if err != nil {
return err
}
return SetHosts(hname, strings.Split(iface.String(), "/")[0])
} | go | func SetHostsDefault(defaultIface string, force bool) error {
hname, err := os.Hostname()
if err != nil {
return err
}
if _, err := net.LookupHost(hname); err == nil {
if force == false {
return nil
}
}
iface, err := netutils.GetIfaceAddr(defaultIface)
if err != nil {
return err
}
return SetHosts(hname, strings.Split(iface.String(), "/")[0])
} | [
"func",
"SetHostsDefault",
"(",
"defaultIface",
"string",
",",
"force",
"bool",
")",
"error",
"{",
"hname",
",",
"err",
":=",
"os",
".",
"Hostname",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"err",
"\n",
"}",
"\n",
"if",
"_",
",",
"e... | // SetHostDefault sets hostname for appropriate interface | [
"SetHostDefault",
"sets",
"hostname",
"for",
"appropriate",
"interface"
] | 7a1321c45e855829b2ae9c506f1531d018b2c145 | https://github.com/dorzheh/infra/blob/7a1321c45e855829b2ae9c506f1531d018b2c145/utils/hostutils/hostname.go#L61-L76 |
154,620 | aws/aws-sdk-go | service/alexaforbusiness/api.go | SetEnrollmentStatus | func (s *UserData) SetEnrollmentStatus(v string) *UserData {
s.EnrollmentStatus = &v
return s
} | go | func (s *UserData) SetEnrollmentStatus(v string) *UserData {
s.EnrollmentStatus = &v
return s
} | [
"func",
"(",
"s",
"*",
"UserData",
")",
"SetEnrollmentStatus",
"(",
"v",
"string",
")",
"*",
"UserData",
"{",
"s",
".",
"EnrollmentStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEnrollmentStatus sets the EnrollmentStatus field's value. | [
"SetEnrollmentStatus",
"sets",
"the",
"EnrollmentStatus",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/alexaforbusiness/api.go#L17272-L17275 |
154,621 | aws/aws-sdk-go | service/cloudtrail/api.go | SetIncludeShadowTrails | func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput {
s.IncludeShadowTrails = &v
return s
} | go | func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput {
s.IncludeShadowTrails = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTrailsInput",
")",
"SetIncludeShadowTrails",
"(",
"v",
"bool",
")",
"*",
"DescribeTrailsInput",
"{",
"s",
".",
"IncludeShadowTrails",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIncludeShadowTrails sets the IncludeShadowTrails field's value. | [
"SetIncludeShadowTrails",
"sets",
"the",
"IncludeShadowTrails",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2483-L2486 |
154,622 | aws/aws-sdk-go | service/cloudtrail/api.go | SetTrailNameList | func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput {
s.TrailNameList = v
return s
} | go | func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput {
s.TrailNameList = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTrailsInput",
")",
"SetTrailNameList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"DescribeTrailsInput",
"{",
"s",
".",
"TrailNameList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTrailNameList sets the TrailNameList field's value. | [
"SetTrailNameList",
"sets",
"the",
"TrailNameList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2489-L2492 |
154,623 | aws/aws-sdk-go | service/cloudtrail/api.go | SetTrailList | func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput {
s.TrailList = v
return s
} | go | func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput {
s.TrailList = v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeTrailsOutput",
")",
"SetTrailList",
"(",
"v",
"[",
"]",
"*",
"Trail",
")",
"*",
"DescribeTrailsOutput",
"{",
"s",
".",
"TrailList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTrailList sets the TrailList field's value. | [
"SetTrailList",
"sets",
"the",
"TrailList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2514-L2517 |
154,624 | aws/aws-sdk-go | service/cloudtrail/api.go | SetCloudTrailEvent | func (s *Event) SetCloudTrailEvent(v string) *Event {
s.CloudTrailEvent = &v
return s
} | go | func (s *Event) SetCloudTrailEvent(v string) *Event {
s.CloudTrailEvent = &v
return s
} | [
"func",
"(",
"s",
"*",
"Event",
")",
"SetCloudTrailEvent",
"(",
"v",
"string",
")",
"*",
"Event",
"{",
"s",
".",
"CloudTrailEvent",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudTrailEvent sets the CloudTrailEvent field's value. | [
"SetCloudTrailEvent",
"sets",
"the",
"CloudTrailEvent",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2572-L2575 |
154,625 | aws/aws-sdk-go | service/cloudtrail/api.go | SetEventTime | func (s *Event) SetEventTime(v time.Time) *Event {
s.EventTime = &v
return s
} | go | func (s *Event) SetEventTime(v time.Time) *Event {
s.EventTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Event",
")",
"SetEventTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"Event",
"{",
"s",
".",
"EventTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetEventTime sets the EventTime field's value. | [
"SetEventTime",
"sets",
"the",
"EventTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2596-L2599 |
154,626 | aws/aws-sdk-go | service/cloudtrail/api.go | SetDataResources | func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector {
s.DataResources = v
return s
} | go | func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector {
s.DataResources = v
return s
} | [
"func",
"(",
"s",
"*",
"EventSelector",
")",
"SetDataResources",
"(",
"v",
"[",
"]",
"*",
"DataResource",
")",
"*",
"EventSelector",
"{",
"s",
".",
"DataResources",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDataResources sets the DataResources field's value. | [
"SetDataResources",
"sets",
"the",
"DataResources",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2670-L2673 |
154,627 | aws/aws-sdk-go | service/cloudtrail/api.go | SetIncludeManagementEvents | func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector {
s.IncludeManagementEvents = &v
return s
} | go | func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector {
s.IncludeManagementEvents = &v
return s
} | [
"func",
"(",
"s",
"*",
"EventSelector",
")",
"SetIncludeManagementEvents",
"(",
"v",
"bool",
")",
"*",
"EventSelector",
"{",
"s",
".",
"IncludeManagementEvents",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIncludeManagementEvents sets the IncludeManagementEvents field's value. | [
"SetIncludeManagementEvents",
"sets",
"the",
"IncludeManagementEvents",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2676-L2679 |
154,628 | aws/aws-sdk-go | service/cloudtrail/api.go | SetReadWriteType | func (s *EventSelector) SetReadWriteType(v string) *EventSelector {
s.ReadWriteType = &v
return s
} | go | func (s *EventSelector) SetReadWriteType(v string) *EventSelector {
s.ReadWriteType = &v
return s
} | [
"func",
"(",
"s",
"*",
"EventSelector",
")",
"SetReadWriteType",
"(",
"v",
"string",
")",
"*",
"EventSelector",
"{",
"s",
".",
"ReadWriteType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReadWriteType sets the ReadWriteType field's value. | [
"SetReadWriteType",
"sets",
"the",
"ReadWriteType",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2682-L2685 |
154,629 | aws/aws-sdk-go | service/cloudtrail/api.go | SetIsLogging | func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput {
s.IsLogging = &v
return s
} | go | func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput {
s.IsLogging = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetIsLogging",
"(",
"v",
"bool",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"IsLogging",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetIsLogging sets the IsLogging field's value. | [
"SetIsLogging",
"sets",
"the",
"IsLogging",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2910-L2913 |
154,630 | aws/aws-sdk-go | service/cloudtrail/api.go | SetStartLoggingTime | func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StartLoggingTime = &v
return s
} | go | func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StartLoggingTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetStartLoggingTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"StartLoggingTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStartLoggingTime sets the StartLoggingTime field's value. | [
"SetStartLoggingTime",
"sets",
"the",
"StartLoggingTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2988-L2991 |
154,631 | aws/aws-sdk-go | service/cloudtrail/api.go | SetStopLoggingTime | func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StopLoggingTime = &v
return s
} | go | func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput {
s.StopLoggingTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetStopLoggingTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"StopLoggingTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStopLoggingTime sets the StopLoggingTime field's value. | [
"SetStopLoggingTime",
"sets",
"the",
"StopLoggingTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L2994-L2997 |
154,632 | aws/aws-sdk-go | service/cloudtrail/api.go | SetTimeLoggingStarted | func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput {
s.TimeLoggingStarted = &v
return s
} | go | func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput {
s.TimeLoggingStarted = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetTimeLoggingStarted",
"(",
"v",
"string",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"TimeLoggingStarted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimeLoggingStarted sets the TimeLoggingStarted field's value. | [
"SetTimeLoggingStarted",
"sets",
"the",
"TimeLoggingStarted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3000-L3003 |
154,633 | aws/aws-sdk-go | service/cloudtrail/api.go | SetTimeLoggingStopped | func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput {
s.TimeLoggingStopped = &v
return s
} | go | func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput {
s.TimeLoggingStopped = &v
return s
} | [
"func",
"(",
"s",
"*",
"GetTrailStatusOutput",
")",
"SetTimeLoggingStopped",
"(",
"v",
"string",
")",
"*",
"GetTrailStatusOutput",
"{",
"s",
".",
"TimeLoggingStopped",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimeLoggingStopped sets the TimeLoggingStopped field's value. | [
"SetTimeLoggingStopped",
"sets",
"the",
"TimeLoggingStopped",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3006-L3009 |
154,634 | aws/aws-sdk-go | service/cloudtrail/api.go | SetPublicKeyList | func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput {
s.PublicKeyList = v
return s
} | go | func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput {
s.PublicKeyList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListPublicKeysOutput",
")",
"SetPublicKeyList",
"(",
"v",
"[",
"]",
"*",
"PublicKey",
")",
"*",
"ListPublicKeysOutput",
"{",
"s",
".",
"PublicKeyList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPublicKeyList sets the PublicKeyList field's value. | [
"SetPublicKeyList",
"sets",
"the",
"PublicKeyList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3087-L3090 |
154,635 | aws/aws-sdk-go | service/cloudtrail/api.go | SetResourceIdList | func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput {
s.ResourceIdList = v
return s
} | go | func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput {
s.ResourceIdList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListTagsInput",
")",
"SetResourceIdList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"ListTagsInput",
"{",
"s",
".",
"ResourceIdList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceIdList sets the ResourceIdList field's value. | [
"SetResourceIdList",
"sets",
"the",
"ResourceIdList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3138-L3141 |
154,636 | aws/aws-sdk-go | service/cloudtrail/api.go | SetResourceTagList | func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput {
s.ResourceTagList = v
return s
} | go | func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput {
s.ResourceTagList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListTagsOutput",
")",
"SetResourceTagList",
"(",
"v",
"[",
"]",
"*",
"ResourceTag",
")",
"*",
"ListTagsOutput",
"{",
"s",
".",
"ResourceTagList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetResourceTagList sets the ResourceTagList field's value. | [
"SetResourceTagList",
"sets",
"the",
"ResourceTagList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3172-L3175 |
154,637 | aws/aws-sdk-go | service/cloudtrail/api.go | SetLookupAttributes | func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput {
s.LookupAttributes = v
return s
} | go | func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput {
s.LookupAttributes = v
return s
} | [
"func",
"(",
"s",
"*",
"LookupEventsInput",
")",
"SetLookupAttributes",
"(",
"v",
"[",
"]",
"*",
"LookupAttribute",
")",
"*",
"LookupEventsInput",
"{",
"s",
".",
"LookupAttributes",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLookupAttributes sets the LookupAttributes field's value. | [
"SetLookupAttributes",
"sets",
"the",
"LookupAttributes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3300-L3303 |
154,638 | aws/aws-sdk-go | service/cloudtrail/api.go | SetValidityEndTime | func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey {
s.ValidityEndTime = &v
return s
} | go | func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey {
s.ValidityEndTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"PublicKey",
")",
"SetValidityEndTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"PublicKey",
"{",
"s",
".",
"ValidityEndTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetValidityEndTime sets the ValidityEndTime field's value. | [
"SetValidityEndTime",
"sets",
"the",
"ValidityEndTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3398-L3401 |
154,639 | aws/aws-sdk-go | service/cloudtrail/api.go | SetValidityStartTime | func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey {
s.ValidityStartTime = &v
return s
} | go | func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey {
s.ValidityStartTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"PublicKey",
")",
"SetValidityStartTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"PublicKey",
"{",
"s",
".",
"ValidityStartTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetValidityStartTime sets the ValidityStartTime field's value. | [
"SetValidityStartTime",
"sets",
"the",
"ValidityStartTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3404-L3407 |
154,640 | aws/aws-sdk-go | service/cloudtrail/api.go | SetHasCustomEventSelectors | func (s *Trail) SetHasCustomEventSelectors(v bool) *Trail {
s.HasCustomEventSelectors = &v
return s
} | go | func (s *Trail) SetHasCustomEventSelectors(v bool) *Trail {
s.HasCustomEventSelectors = &v
return s
} | [
"func",
"(",
"s",
"*",
"Trail",
")",
"SetHasCustomEventSelectors",
"(",
"v",
"bool",
")",
"*",
"Trail",
"{",
"s",
".",
"HasCustomEventSelectors",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHasCustomEventSelectors sets the HasCustomEventSelectors field's value. | [
"SetHasCustomEventSelectors",
"sets",
"the",
"HasCustomEventSelectors",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3927-L3930 |
154,641 | aws/aws-sdk-go | service/cloudtrail/api.go | SetHomeRegion | func (s *Trail) SetHomeRegion(v string) *Trail {
s.HomeRegion = &v
return s
} | go | func (s *Trail) SetHomeRegion(v string) *Trail {
s.HomeRegion = &v
return s
} | [
"func",
"(",
"s",
"*",
"Trail",
")",
"SetHomeRegion",
"(",
"v",
"string",
")",
"*",
"Trail",
"{",
"s",
".",
"HomeRegion",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetHomeRegion sets the HomeRegion field's value. | [
"SetHomeRegion",
"sets",
"the",
"HomeRegion",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudtrail/api.go#L3933-L3936 |
154,642 | aws/aws-sdk-go | service/glacier/api.go | SetArchiveSize | func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput {
s.ArchiveSize = &v
return s
} | go | func (s *CompleteMultipartUploadInput) SetArchiveSize(v string) *CompleteMultipartUploadInput {
s.ArchiveSize = &v
return s
} | [
"func",
"(",
"s",
"*",
"CompleteMultipartUploadInput",
")",
"SetArchiveSize",
"(",
"v",
"string",
")",
"*",
"CompleteMultipartUploadInput",
"{",
"s",
".",
"ArchiveSize",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetArchiveSize sets the ArchiveSize field's value. | [
"SetArchiveSize",
"sets",
"the",
"ArchiveSize",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L4241-L4244 |
154,643 | aws/aws-sdk-go | service/glacier/api.go | SetBytesPerHour | func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule {
s.BytesPerHour = &v
return s
} | go | func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule {
s.BytesPerHour = &v
return s
} | [
"func",
"(",
"s",
"*",
"DataRetrievalRule",
")",
"SetBytesPerHour",
"(",
"v",
"int64",
")",
"*",
"DataRetrievalRule",
"{",
"s",
".",
"BytesPerHour",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetBytesPerHour sets the BytesPerHour field's value. | [
"SetBytesPerHour",
"sets",
"the",
"BytesPerHour",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L4500-L4503 |
154,644 | aws/aws-sdk-go | service/glacier/api.go | SetLastInventoryDate | func (s *DescribeVaultOutput) SetLastInventoryDate(v string) *DescribeVaultOutput {
s.LastInventoryDate = &v
return s
} | go | func (s *DescribeVaultOutput) SetLastInventoryDate(v string) *DescribeVaultOutput {
s.LastInventoryDate = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeVaultOutput",
")",
"SetLastInventoryDate",
"(",
"v",
"string",
")",
"*",
"DescribeVaultOutput",
"{",
"s",
".",
"LastInventoryDate",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastInventoryDate sets the LastInventoryDate field's value. | [
"SetLastInventoryDate",
"sets",
"the",
"LastInventoryDate",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L5027-L5030 |
154,645 | aws/aws-sdk-go | service/glacier/api.go | SetNumberOfArchives | func (s *DescribeVaultOutput) SetNumberOfArchives(v int64) *DescribeVaultOutput {
s.NumberOfArchives = &v
return s
} | go | func (s *DescribeVaultOutput) SetNumberOfArchives(v int64) *DescribeVaultOutput {
s.NumberOfArchives = &v
return s
} | [
"func",
"(",
"s",
"*",
"DescribeVaultOutput",
")",
"SetNumberOfArchives",
"(",
"v",
"int64",
")",
"*",
"DescribeVaultOutput",
"{",
"s",
".",
"NumberOfArchives",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetNumberOfArchives sets the NumberOfArchives field's value. | [
"SetNumberOfArchives",
"sets",
"the",
"NumberOfArchives",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L5033-L5036 |
154,646 | aws/aws-sdk-go | service/glacier/api.go | SetJobParameters | func (s *InitiateJobInput) SetJobParameters(v *JobParameters) *InitiateJobInput {
s.JobParameters = v
return s
} | go | func (s *InitiateJobInput) SetJobParameters(v *JobParameters) *InitiateJobInput {
s.JobParameters = v
return s
} | [
"func",
"(",
"s",
"*",
"InitiateJobInput",
")",
"SetJobParameters",
"(",
"v",
"*",
"JobParameters",
")",
"*",
"InitiateJobInput",
"{",
"s",
".",
"JobParameters",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobParameters sets the JobParameters field's value. | [
"SetJobParameters",
"sets",
"the",
"JobParameters",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L5871-L5874 |
154,647 | aws/aws-sdk-go | service/glacier/api.go | SetArchiveSHA256TreeHash | func (s *JobDescription) SetArchiveSHA256TreeHash(v string) *JobDescription {
s.ArchiveSHA256TreeHash = &v
return s
} | go | func (s *JobDescription) SetArchiveSHA256TreeHash(v string) *JobDescription {
s.ArchiveSHA256TreeHash = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetArchiveSHA256TreeHash",
"(",
"v",
"string",
")",
"*",
"JobDescription",
"{",
"s",
".",
"ArchiveSHA256TreeHash",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetArchiveSHA256TreeHash sets the ArchiveSHA256TreeHash field's value. | [
"SetArchiveSHA256TreeHash",
"sets",
"the",
"ArchiveSHA256TreeHash",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6424-L6427 |
154,648 | aws/aws-sdk-go | service/glacier/api.go | SetArchiveSizeInBytes | func (s *JobDescription) SetArchiveSizeInBytes(v int64) *JobDescription {
s.ArchiveSizeInBytes = &v
return s
} | go | func (s *JobDescription) SetArchiveSizeInBytes(v int64) *JobDescription {
s.ArchiveSizeInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetArchiveSizeInBytes",
"(",
"v",
"int64",
")",
"*",
"JobDescription",
"{",
"s",
".",
"ArchiveSizeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetArchiveSizeInBytes sets the ArchiveSizeInBytes field's value. | [
"SetArchiveSizeInBytes",
"sets",
"the",
"ArchiveSizeInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6430-L6433 |
154,649 | aws/aws-sdk-go | service/glacier/api.go | SetInventorySizeInBytes | func (s *JobDescription) SetInventorySizeInBytes(v int64) *JobDescription {
s.InventorySizeInBytes = &v
return s
} | go | func (s *JobDescription) SetInventorySizeInBytes(v int64) *JobDescription {
s.InventorySizeInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetInventorySizeInBytes",
"(",
"v",
"int64",
")",
"*",
"JobDescription",
"{",
"s",
".",
"InventorySizeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetInventorySizeInBytes sets the InventorySizeInBytes field's value. | [
"SetInventorySizeInBytes",
"sets",
"the",
"InventorySizeInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6460-L6463 |
154,650 | aws/aws-sdk-go | service/glacier/api.go | SetJobDescription | func (s *JobDescription) SetJobDescription(v string) *JobDescription {
s.JobDescription = &v
return s
} | go | func (s *JobDescription) SetJobDescription(v string) *JobDescription {
s.JobDescription = &v
return s
} | [
"func",
"(",
"s",
"*",
"JobDescription",
")",
"SetJobDescription",
"(",
"v",
"string",
")",
"*",
"JobDescription",
"{",
"s",
".",
"JobDescription",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobDescription sets the JobDescription field's value. | [
"SetJobDescription",
"sets",
"the",
"JobDescription",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6466-L6469 |
154,651 | aws/aws-sdk-go | service/glacier/api.go | SetStatuscode | func (s *ListJobsInput) SetStatuscode(v string) *ListJobsInput {
s.Statuscode = &v
return s
} | go | func (s *ListJobsInput) SetStatuscode(v string) *ListJobsInput {
s.Statuscode = &v
return s
} | [
"func",
"(",
"s",
"*",
"ListJobsInput",
")",
"SetStatuscode",
"(",
"v",
"string",
")",
"*",
"ListJobsInput",
"{",
"s",
".",
"Statuscode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStatuscode sets the Statuscode field's value. | [
"SetStatuscode",
"sets",
"the",
"Statuscode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6773-L6776 |
154,652 | aws/aws-sdk-go | service/glacier/api.go | SetJobList | func (s *ListJobsOutput) SetJobList(v []*JobDescription) *ListJobsOutput {
s.JobList = v
return s
} | go | func (s *ListJobsOutput) SetJobList(v []*JobDescription) *ListJobsOutput {
s.JobList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListJobsOutput",
")",
"SetJobList",
"(",
"v",
"[",
"]",
"*",
"JobDescription",
")",
"*",
"ListJobsOutput",
"{",
"s",
".",
"JobList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobList sets the JobList field's value. | [
"SetJobList",
"sets",
"the",
"JobList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6809-L6812 |
154,653 | aws/aws-sdk-go | service/glacier/api.go | SetUploadsList | func (s *ListMultipartUploadsOutput) SetUploadsList(v []*UploadListElement) *ListMultipartUploadsOutput {
s.UploadsList = v
return s
} | go | func (s *ListMultipartUploadsOutput) SetUploadsList(v []*UploadListElement) *ListMultipartUploadsOutput {
s.UploadsList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListMultipartUploadsOutput",
")",
"SetUploadsList",
"(",
"v",
"[",
"]",
"*",
"UploadListElement",
")",
"*",
"ListMultipartUploadsOutput",
"{",
"s",
".",
"UploadsList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetUploadsList sets the UploadsList field's value. | [
"SetUploadsList",
"sets",
"the",
"UploadsList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L6937-L6940 |
154,654 | aws/aws-sdk-go | service/glacier/api.go | SetProvisionedCapacityList | func (s *ListProvisionedCapacityOutput) SetProvisionedCapacityList(v []*ProvisionedCapacityDescription) *ListProvisionedCapacityOutput {
s.ProvisionedCapacityList = v
return s
} | go | func (s *ListProvisionedCapacityOutput) SetProvisionedCapacityList(v []*ProvisionedCapacityDescription) *ListProvisionedCapacityOutput {
s.ProvisionedCapacityList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListProvisionedCapacityOutput",
")",
"SetProvisionedCapacityList",
"(",
"v",
"[",
"]",
"*",
"ProvisionedCapacityDescription",
")",
"*",
"ListProvisionedCapacityOutput",
"{",
"s",
".",
"ProvisionedCapacityList",
"=",
"v",
"\n",
"return",
"s",
... | // SetProvisionedCapacityList sets the ProvisionedCapacityList field's value. | [
"SetProvisionedCapacityList",
"sets",
"the",
"ProvisionedCapacityList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L7194-L7197 |
154,655 | aws/aws-sdk-go | service/glacier/api.go | SetVaultList | func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOutput {
s.VaultList = v
return s
} | go | func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOutput {
s.VaultList = v
return s
} | [
"func",
"(",
"s",
"*",
"ListVaultsOutput",
")",
"SetVaultList",
"(",
"v",
"[",
"]",
"*",
"DescribeVaultOutput",
")",
"*",
"ListVaultsOutput",
"{",
"s",
".",
"VaultList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetVaultList sets the VaultList field's value. | [
"SetVaultList",
"sets",
"the",
"VaultList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L7384-L7387 |
154,656 | aws/aws-sdk-go | service/glacier/api.go | SetRangeInBytes | func (s *PartListElement) SetRangeInBytes(v string) *PartListElement {
s.RangeInBytes = &v
return s
} | go | func (s *PartListElement) SetRangeInBytes(v string) *PartListElement {
s.RangeInBytes = &v
return s
} | [
"func",
"(",
"s",
"*",
"PartListElement",
")",
"SetRangeInBytes",
"(",
"v",
"string",
")",
"*",
"PartListElement",
"{",
"s",
".",
"RangeInBytes",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetRangeInBytes sets the RangeInBytes field's value. | [
"SetRangeInBytes",
"sets",
"the",
"RangeInBytes",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glacier/api.go#L7476-L7479 |
154,657 | aws/aws-sdk-go | private/signer/v2/v2.go | SignSDKRequest | func SignSDKRequest(req *request.Request) {
// If the request does not need to be signed ignore the signing of the
// request if the AnonymousCredentials object is used.
if req.Config.Credentials == credentials.AnonymousCredentials {
return
}
if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" {
// The V2 signer only supports GET and POST
req.Error = errInvalidMethod
return
}
v2 := signer{
Request: req.HTTPRequest,
Time: req.Time,
Credentials: req.Config.Credentials,
Debug: req.Config.LogLevel.Value(),
Logger: req.Config.Logger,
}
req.Error = v2.Sign()
if req.Error != nil {
return
}
if req.HTTPRequest.Method == "POST" {
// Set the body of the request based on the modified query parameters
req.SetStringBody(v2.Query.Encode())
// Now that the body has changed, remove any Content-Length header,
// because it will be incorrect
req.HTTPRequest.ContentLength = 0
req.HTTPRequest.Header.Del("Content-Length")
} else {
req.HTTPRequest.URL.RawQuery = v2.Query.Encode()
}
} | go | func SignSDKRequest(req *request.Request) {
// If the request does not need to be signed ignore the signing of the
// request if the AnonymousCredentials object is used.
if req.Config.Credentials == credentials.AnonymousCredentials {
return
}
if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" {
// The V2 signer only supports GET and POST
req.Error = errInvalidMethod
return
}
v2 := signer{
Request: req.HTTPRequest,
Time: req.Time,
Credentials: req.Config.Credentials,
Debug: req.Config.LogLevel.Value(),
Logger: req.Config.Logger,
}
req.Error = v2.Sign()
if req.Error != nil {
return
}
if req.HTTPRequest.Method == "POST" {
// Set the body of the request based on the modified query parameters
req.SetStringBody(v2.Query.Encode())
// Now that the body has changed, remove any Content-Length header,
// because it will be incorrect
req.HTTPRequest.ContentLength = 0
req.HTTPRequest.Header.Del("Content-Length")
} else {
req.HTTPRequest.URL.RawQuery = v2.Query.Encode()
}
} | [
"func",
"SignSDKRequest",
"(",
"req",
"*",
"request",
".",
"Request",
")",
"{",
"// If the request does not need to be signed ignore the signing of the",
"// request if the AnonymousCredentials object is used.",
"if",
"req",
".",
"Config",
".",
"Credentials",
"==",
"credentials... | // SignSDKRequest requests with signature version 2.
//
// Will sign the requests with the service config's Credentials object
// Signing is skipped if the credentials is the credentials.AnonymousCredentials
// object. | [
"SignSDKRequest",
"requests",
"with",
"signature",
"version",
"2",
".",
"Will",
"sign",
"the",
"requests",
"with",
"the",
"service",
"config",
"s",
"Credentials",
"object",
"Signing",
"is",
"skipped",
"if",
"the",
"credentials",
"is",
"the",
"credentials",
".",
... | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/signer/v2/v2.go#L54-L92 |
154,658 | aws/aws-sdk-go | service/glue/api.go | SetPartitionInputList | func (s *BatchCreatePartitionInput) SetPartitionInputList(v []*PartitionInput) *BatchCreatePartitionInput {
s.PartitionInputList = v
return s
} | go | func (s *BatchCreatePartitionInput) SetPartitionInputList(v []*PartitionInput) *BatchCreatePartitionInput {
s.PartitionInputList = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchCreatePartitionInput",
")",
"SetPartitionInputList",
"(",
"v",
"[",
"]",
"*",
"PartitionInput",
")",
"*",
"BatchCreatePartitionInput",
"{",
"s",
".",
"PartitionInputList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionInputList sets the PartitionInputList field's value. | [
"SetPartitionInputList",
"sets",
"the",
"PartitionInputList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10010-L10013 |
154,659 | aws/aws-sdk-go | service/glue/api.go | SetConnectionNameList | func (s *BatchDeleteConnectionInput) SetConnectionNameList(v []*string) *BatchDeleteConnectionInput {
s.ConnectionNameList = v
return s
} | go | func (s *BatchDeleteConnectionInput) SetConnectionNameList(v []*string) *BatchDeleteConnectionInput {
s.ConnectionNameList = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeleteConnectionInput",
")",
"SetConnectionNameList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchDeleteConnectionInput",
"{",
"s",
".",
"ConnectionNameList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetConnectionNameList sets the ConnectionNameList field's value. | [
"SetConnectionNameList",
"sets",
"the",
"ConnectionNameList",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10090-L10093 |
154,660 | aws/aws-sdk-go | service/glue/api.go | SetPartitionsToDelete | func (s *BatchDeletePartitionInput) SetPartitionsToDelete(v []*PartitionValueList) *BatchDeletePartitionInput {
s.PartitionsToDelete = v
return s
} | go | func (s *BatchDeletePartitionInput) SetPartitionsToDelete(v []*PartitionValueList) *BatchDeletePartitionInput {
s.PartitionsToDelete = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeletePartitionInput",
")",
"SetPartitionsToDelete",
"(",
"v",
"[",
"]",
"*",
"PartitionValueList",
")",
"*",
"BatchDeletePartitionInput",
"{",
"s",
".",
"PartitionsToDelete",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionsToDelete sets the PartitionsToDelete field's value. | [
"SetPartitionsToDelete",
"sets",
"the",
"PartitionsToDelete",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10212-L10215 |
154,661 | aws/aws-sdk-go | service/glue/api.go | SetTablesToDelete | func (s *BatchDeleteTableInput) SetTablesToDelete(v []*string) *BatchDeleteTableInput {
s.TablesToDelete = v
return s
} | go | func (s *BatchDeleteTableInput) SetTablesToDelete(v []*string) *BatchDeleteTableInput {
s.TablesToDelete = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeleteTableInput",
")",
"SetTablesToDelete",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchDeleteTableInput",
"{",
"s",
".",
"TablesToDelete",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesToDelete sets the TablesToDelete field's value. | [
"SetTablesToDelete",
"sets",
"the",
"TablesToDelete",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10310-L10313 |
154,662 | aws/aws-sdk-go | service/glue/api.go | SetVersionIds | func (s *BatchDeleteTableVersionInput) SetVersionIds(v []*string) *BatchDeleteTableVersionInput {
s.VersionIds = v
return s
} | go | func (s *BatchDeleteTableVersionInput) SetVersionIds(v []*string) *BatchDeleteTableVersionInput {
s.VersionIds = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchDeleteTableVersionInput",
")",
"SetVersionIds",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchDeleteTableVersionInput",
"{",
"s",
".",
"VersionIds",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetVersionIds sets the VersionIds field's value. | [
"SetVersionIds",
"sets",
"the",
"VersionIds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10420-L10423 |
154,663 | aws/aws-sdk-go | service/glue/api.go | SetCrawlersNotFound | func (s *BatchGetCrawlersOutput) SetCrawlersNotFound(v []*string) *BatchGetCrawlersOutput {
s.CrawlersNotFound = v
return s
} | go | func (s *BatchGetCrawlersOutput) SetCrawlersNotFound(v []*string) *BatchGetCrawlersOutput {
s.CrawlersNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetCrawlersOutput",
")",
"SetCrawlersNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetCrawlersOutput",
"{",
"s",
".",
"CrawlersNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawlersNotFound sets the CrawlersNotFound field's value. | [
"SetCrawlersNotFound",
"sets",
"the",
"CrawlersNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10514-L10517 |
154,664 | aws/aws-sdk-go | service/glue/api.go | SetDevEndpointsNotFound | func (s *BatchGetDevEndpointsOutput) SetDevEndpointsNotFound(v []*string) *BatchGetDevEndpointsOutput {
s.DevEndpointsNotFound = v
return s
} | go | func (s *BatchGetDevEndpointsOutput) SetDevEndpointsNotFound(v []*string) *BatchGetDevEndpointsOutput {
s.DevEndpointsNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetDevEndpointsOutput",
")",
"SetDevEndpointsNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetDevEndpointsOutput",
"{",
"s",
".",
"DevEndpointsNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDevEndpointsNotFound sets the DevEndpointsNotFound field's value. | [
"SetDevEndpointsNotFound",
"sets",
"the",
"DevEndpointsNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10588-L10591 |
154,665 | aws/aws-sdk-go | service/glue/api.go | SetJobsNotFound | func (s *BatchGetJobsOutput) SetJobsNotFound(v []*string) *BatchGetJobsOutput {
s.JobsNotFound = v
return s
} | go | func (s *BatchGetJobsOutput) SetJobsNotFound(v []*string) *BatchGetJobsOutput {
s.JobsNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetJobsOutput",
")",
"SetJobsNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetJobsOutput",
"{",
"s",
".",
"JobsNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobsNotFound sets the JobsNotFound field's value. | [
"SetJobsNotFound",
"sets",
"the",
"JobsNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10658-L10661 |
154,666 | aws/aws-sdk-go | service/glue/api.go | SetPartitionsToGet | func (s *BatchGetPartitionInput) SetPartitionsToGet(v []*PartitionValueList) *BatchGetPartitionInput {
s.PartitionsToGet = v
return s
} | go | func (s *BatchGetPartitionInput) SetPartitionsToGet(v []*PartitionValueList) *BatchGetPartitionInput {
s.PartitionsToGet = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetPartitionInput",
")",
"SetPartitionsToGet",
"(",
"v",
"[",
"]",
"*",
"PartitionValueList",
")",
"*",
"BatchGetPartitionInput",
"{",
"s",
".",
"PartitionsToGet",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPartitionsToGet sets the PartitionsToGet field's value. | [
"SetPartitionsToGet",
"sets",
"the",
"PartitionsToGet",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10747-L10750 |
154,667 | aws/aws-sdk-go | service/glue/api.go | SetTriggersNotFound | func (s *BatchGetTriggersOutput) SetTriggersNotFound(v []*string) *BatchGetTriggersOutput {
s.TriggersNotFound = v
return s
} | go | func (s *BatchGetTriggersOutput) SetTriggersNotFound(v []*string) *BatchGetTriggersOutput {
s.TriggersNotFound = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchGetTriggersOutput",
")",
"SetTriggersNotFound",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchGetTriggersOutput",
"{",
"s",
".",
"TriggersNotFound",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTriggersNotFound sets the TriggersNotFound field's value. | [
"SetTriggersNotFound",
"sets",
"the",
"TriggersNotFound",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10857-L10860 |
154,668 | aws/aws-sdk-go | service/glue/api.go | SetJobRunIds | func (s *BatchStopJobRunInput) SetJobRunIds(v []*string) *BatchStopJobRunInput {
s.JobRunIds = v
return s
} | go | func (s *BatchStopJobRunInput) SetJobRunIds(v []*string) *BatchStopJobRunInput {
s.JobRunIds = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchStopJobRunInput",
")",
"SetJobRunIds",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"BatchStopJobRunInput",
"{",
"s",
".",
"JobRunIds",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobRunIds sets the JobRunIds field's value. | [
"SetJobRunIds",
"sets",
"the",
"JobRunIds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10957-L10960 |
154,669 | aws/aws-sdk-go | service/glue/api.go | SetSuccessfulSubmissions | func (s *BatchStopJobRunOutput) SetSuccessfulSubmissions(v []*BatchStopJobRunSuccessfulSubmission) *BatchStopJobRunOutput {
s.SuccessfulSubmissions = v
return s
} | go | func (s *BatchStopJobRunOutput) SetSuccessfulSubmissions(v []*BatchStopJobRunSuccessfulSubmission) *BatchStopJobRunOutput {
s.SuccessfulSubmissions = v
return s
} | [
"func",
"(",
"s",
"*",
"BatchStopJobRunOutput",
")",
"SetSuccessfulSubmissions",
"(",
"v",
"[",
"]",
"*",
"BatchStopJobRunSuccessfulSubmission",
")",
"*",
"BatchStopJobRunOutput",
"{",
"s",
".",
"SuccessfulSubmissions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSuccessfulSubmissions sets the SuccessfulSubmissions field's value. | [
"SetSuccessfulSubmissions",
"sets",
"the",
"SuccessfulSubmissions",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L10990-L10993 |
154,670 | aws/aws-sdk-go | service/glue/api.go | SetImportCompleted | func (s *CatalogImportStatus) SetImportCompleted(v bool) *CatalogImportStatus {
s.ImportCompleted = &v
return s
} | go | func (s *CatalogImportStatus) SetImportCompleted(v bool) *CatalogImportStatus {
s.ImportCompleted = &v
return s
} | [
"func",
"(",
"s",
"*",
"CatalogImportStatus",
")",
"SetImportCompleted",
"(",
"v",
"bool",
")",
"*",
"CatalogImportStatus",
"{",
"s",
".",
"ImportCompleted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetImportCompleted sets the ImportCompleted field's value. | [
"SetImportCompleted",
"sets",
"the",
"ImportCompleted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11112-L11115 |
154,671 | aws/aws-sdk-go | service/glue/api.go | SetImportTime | func (s *CatalogImportStatus) SetImportTime(v time.Time) *CatalogImportStatus {
s.ImportTime = &v
return s
} | go | func (s *CatalogImportStatus) SetImportTime(v time.Time) *CatalogImportStatus {
s.ImportTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"CatalogImportStatus",
")",
"SetImportTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"CatalogImportStatus",
"{",
"s",
".",
"ImportTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetImportTime sets the ImportTime field's value. | [
"SetImportTime",
"sets",
"the",
"ImportTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11118-L11121 |
154,672 | aws/aws-sdk-go | service/glue/api.go | SetImportedBy | func (s *CatalogImportStatus) SetImportedBy(v string) *CatalogImportStatus {
s.ImportedBy = &v
return s
} | go | func (s *CatalogImportStatus) SetImportedBy(v string) *CatalogImportStatus {
s.ImportedBy = &v
return s
} | [
"func",
"(",
"s",
"*",
"CatalogImportStatus",
")",
"SetImportedBy",
"(",
"v",
"string",
")",
"*",
"CatalogImportStatus",
"{",
"s",
".",
"ImportedBy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetImportedBy sets the ImportedBy field's value. | [
"SetImportedBy",
"sets",
"the",
"ImportedBy",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11124-L11127 |
154,673 | aws/aws-sdk-go | service/glue/api.go | SetCloudWatchEncryptionMode | func (s *CloudWatchEncryption) SetCloudWatchEncryptionMode(v string) *CloudWatchEncryption {
s.CloudWatchEncryptionMode = &v
return s
} | go | func (s *CloudWatchEncryption) SetCloudWatchEncryptionMode(v string) *CloudWatchEncryption {
s.CloudWatchEncryptionMode = &v
return s
} | [
"func",
"(",
"s",
"*",
"CloudWatchEncryption",
")",
"SetCloudWatchEncryptionMode",
"(",
"v",
"string",
")",
"*",
"CloudWatchEncryption",
"{",
"s",
".",
"CloudWatchEncryptionMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudWatchEncryptionMode sets the CloudWatchEncryptionMode field's value. | [
"SetCloudWatchEncryptionMode",
"sets",
"the",
"CloudWatchEncryptionMode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11210-L11213 |
154,674 | aws/aws-sdk-go | service/glue/api.go | SetTargetParameter | func (s *CodeGenEdge) SetTargetParameter(v string) *CodeGenEdge {
s.TargetParameter = &v
return s
} | go | func (s *CodeGenEdge) SetTargetParameter(v string) *CodeGenEdge {
s.TargetParameter = &v
return s
} | [
"func",
"(",
"s",
"*",
"CodeGenEdge",
")",
"SetTargetParameter",
"(",
"v",
"string",
")",
"*",
"CodeGenEdge",
"{",
"s",
".",
"TargetParameter",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTargetParameter sets the TargetParameter field's value. | [
"SetTargetParameter",
"sets",
"the",
"TargetParameter",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11284-L11287 |
154,675 | aws/aws-sdk-go | service/glue/api.go | SetLineNumber | func (s *CodeGenNode) SetLineNumber(v int64) *CodeGenNode {
s.LineNumber = &v
return s
} | go | func (s *CodeGenNode) SetLineNumber(v int64) *CodeGenNode {
s.LineNumber = &v
return s
} | [
"func",
"(",
"s",
"*",
"CodeGenNode",
")",
"SetLineNumber",
"(",
"v",
"int64",
")",
"*",
"CodeGenNode",
"{",
"s",
".",
"LineNumber",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLineNumber sets the LineNumber field's value. | [
"SetLineNumber",
"sets",
"the",
"LineNumber",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11367-L11370 |
154,676 | aws/aws-sdk-go | service/glue/api.go | SetParam | func (s *CodeGenNodeArg) SetParam(v bool) *CodeGenNodeArg {
s.Param = &v
return s
} | go | func (s *CodeGenNodeArg) SetParam(v bool) *CodeGenNodeArg {
s.Param = &v
return s
} | [
"func",
"(",
"s",
"*",
"CodeGenNodeArg",
")",
"SetParam",
"(",
"v",
"bool",
")",
"*",
"CodeGenNodeArg",
"{",
"s",
".",
"Param",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetParam sets the Param field's value. | [
"SetParam",
"sets",
"the",
"Param",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11429-L11432 |
154,677 | aws/aws-sdk-go | service/glue/api.go | SetLogicalOperator | func (s *Condition) SetLogicalOperator(v string) *Condition {
s.LogicalOperator = &v
return s
} | go | func (s *Condition) SetLogicalOperator(v string) *Condition {
s.LogicalOperator = &v
return s
} | [
"func",
"(",
"s",
"*",
"Condition",
")",
"SetLogicalOperator",
"(",
"v",
"string",
")",
"*",
"Condition",
"{",
"s",
".",
"LogicalOperator",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLogicalOperator sets the LogicalOperator field's value. | [
"SetLogicalOperator",
"sets",
"the",
"LogicalOperator",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11546-L11549 |
154,678 | aws/aws-sdk-go | service/glue/api.go | SetAwsKmsKeyId | func (s *ConnectionPasswordEncryption) SetAwsKmsKeyId(v string) *ConnectionPasswordEncryption {
s.AwsKmsKeyId = &v
return s
} | go | func (s *ConnectionPasswordEncryption) SetAwsKmsKeyId(v string) *ConnectionPasswordEncryption {
s.AwsKmsKeyId = &v
return s
} | [
"func",
"(",
"s",
"*",
"ConnectionPasswordEncryption",
")",
"SetAwsKmsKeyId",
"(",
"v",
"string",
")",
"*",
"ConnectionPasswordEncryption",
"{",
"s",
".",
"AwsKmsKeyId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetAwsKmsKeyId sets the AwsKmsKeyId field's value. | [
"SetAwsKmsKeyId",
"sets",
"the",
"AwsKmsKeyId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11854-L11857 |
154,679 | aws/aws-sdk-go | service/glue/api.go | SetReturnConnectionPasswordEncrypted | func (s *ConnectionPasswordEncryption) SetReturnConnectionPasswordEncrypted(v bool) *ConnectionPasswordEncryption {
s.ReturnConnectionPasswordEncrypted = &v
return s
} | go | func (s *ConnectionPasswordEncryption) SetReturnConnectionPasswordEncrypted(v bool) *ConnectionPasswordEncryption {
s.ReturnConnectionPasswordEncrypted = &v
return s
} | [
"func",
"(",
"s",
"*",
"ConnectionPasswordEncryption",
")",
"SetReturnConnectionPasswordEncrypted",
"(",
"v",
"bool",
")",
"*",
"ConnectionPasswordEncryption",
"{",
"s",
".",
"ReturnConnectionPasswordEncrypted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetReturnConnectionPasswordEncrypted sets the ReturnConnectionPasswordEncrypted field's value. | [
"SetReturnConnectionPasswordEncrypted",
"sets",
"the",
"ReturnConnectionPasswordEncrypted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11860-L11863 |
154,680 | aws/aws-sdk-go | service/glue/api.go | SetCrawlElapsedTime | func (s *Crawler) SetCrawlElapsedTime(v int64) *Crawler {
s.CrawlElapsedTime = &v
return s
} | go | func (s *Crawler) SetCrawlElapsedTime(v int64) *Crawler {
s.CrawlElapsedTime = &v
return s
} | [
"func",
"(",
"s",
"*",
"Crawler",
")",
"SetCrawlElapsedTime",
"(",
"v",
"int64",
")",
"*",
"Crawler",
"{",
"s",
".",
"CrawlElapsedTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCrawlElapsedTime sets the CrawlElapsedTime field's value. | [
"SetCrawlElapsedTime",
"sets",
"the",
"CrawlElapsedTime",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L11975-L11978 |
154,681 | aws/aws-sdk-go | service/glue/api.go | SetLastCrawl | func (s *Crawler) SetLastCrawl(v *LastCrawlInfo) *Crawler {
s.LastCrawl = v
return s
} | go | func (s *Crawler) SetLastCrawl(v *LastCrawlInfo) *Crawler {
s.LastCrawl = v
return s
} | [
"func",
"(",
"s",
"*",
"Crawler",
")",
"SetLastCrawl",
"(",
"v",
"*",
"LastCrawlInfo",
")",
"*",
"Crawler",
"{",
"s",
".",
"LastCrawl",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastCrawl sets the LastCrawl field's value. | [
"SetLastCrawl",
"sets",
"the",
"LastCrawl",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12005-L12008 |
154,682 | aws/aws-sdk-go | service/glue/api.go | SetLastRuntimeSeconds | func (s *CrawlerMetrics) SetLastRuntimeSeconds(v float64) *CrawlerMetrics {
s.LastRuntimeSeconds = &v
return s
} | go | func (s *CrawlerMetrics) SetLastRuntimeSeconds(v float64) *CrawlerMetrics {
s.LastRuntimeSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetLastRuntimeSeconds",
"(",
"v",
"float64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"LastRuntimeSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetLastRuntimeSeconds sets the LastRuntimeSeconds field's value. | [
"SetLastRuntimeSeconds",
"sets",
"the",
"LastRuntimeSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12111-L12114 |
154,683 | aws/aws-sdk-go | service/glue/api.go | SetMedianRuntimeSeconds | func (s *CrawlerMetrics) SetMedianRuntimeSeconds(v float64) *CrawlerMetrics {
s.MedianRuntimeSeconds = &v
return s
} | go | func (s *CrawlerMetrics) SetMedianRuntimeSeconds(v float64) *CrawlerMetrics {
s.MedianRuntimeSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetMedianRuntimeSeconds",
"(",
"v",
"float64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"MedianRuntimeSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetMedianRuntimeSeconds sets the MedianRuntimeSeconds field's value. | [
"SetMedianRuntimeSeconds",
"sets",
"the",
"MedianRuntimeSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12117-L12120 |
154,684 | aws/aws-sdk-go | service/glue/api.go | SetStillEstimating | func (s *CrawlerMetrics) SetStillEstimating(v bool) *CrawlerMetrics {
s.StillEstimating = &v
return s
} | go | func (s *CrawlerMetrics) SetStillEstimating(v bool) *CrawlerMetrics {
s.StillEstimating = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetStillEstimating",
"(",
"v",
"bool",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"StillEstimating",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStillEstimating sets the StillEstimating field's value. | [
"SetStillEstimating",
"sets",
"the",
"StillEstimating",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12123-L12126 |
154,685 | aws/aws-sdk-go | service/glue/api.go | SetTablesCreated | func (s *CrawlerMetrics) SetTablesCreated(v int64) *CrawlerMetrics {
s.TablesCreated = &v
return s
} | go | func (s *CrawlerMetrics) SetTablesCreated(v int64) *CrawlerMetrics {
s.TablesCreated = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTablesCreated",
"(",
"v",
"int64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TablesCreated",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesCreated sets the TablesCreated field's value. | [
"SetTablesCreated",
"sets",
"the",
"TablesCreated",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12129-L12132 |
154,686 | aws/aws-sdk-go | service/glue/api.go | SetTablesDeleted | func (s *CrawlerMetrics) SetTablesDeleted(v int64) *CrawlerMetrics {
s.TablesDeleted = &v
return s
} | go | func (s *CrawlerMetrics) SetTablesDeleted(v int64) *CrawlerMetrics {
s.TablesDeleted = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTablesDeleted",
"(",
"v",
"int64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TablesDeleted",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesDeleted sets the TablesDeleted field's value. | [
"SetTablesDeleted",
"sets",
"the",
"TablesDeleted",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12135-L12138 |
154,687 | aws/aws-sdk-go | service/glue/api.go | SetTablesUpdated | func (s *CrawlerMetrics) SetTablesUpdated(v int64) *CrawlerMetrics {
s.TablesUpdated = &v
return s
} | go | func (s *CrawlerMetrics) SetTablesUpdated(v int64) *CrawlerMetrics {
s.TablesUpdated = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTablesUpdated",
"(",
"v",
"int64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TablesUpdated",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTablesUpdated sets the TablesUpdated field's value. | [
"SetTablesUpdated",
"sets",
"the",
"TablesUpdated",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12141-L12144 |
154,688 | aws/aws-sdk-go | service/glue/api.go | SetTimeLeftSeconds | func (s *CrawlerMetrics) SetTimeLeftSeconds(v float64) *CrawlerMetrics {
s.TimeLeftSeconds = &v
return s
} | go | func (s *CrawlerMetrics) SetTimeLeftSeconds(v float64) *CrawlerMetrics {
s.TimeLeftSeconds = &v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerMetrics",
")",
"SetTimeLeftSeconds",
"(",
"v",
"float64",
")",
"*",
"CrawlerMetrics",
"{",
"s",
".",
"TimeLeftSeconds",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetTimeLeftSeconds sets the TimeLeftSeconds field's value. | [
"SetTimeLeftSeconds",
"sets",
"the",
"TimeLeftSeconds",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12147-L12150 |
154,689 | aws/aws-sdk-go | service/glue/api.go | SetDynamoDBTargets | func (s *CrawlerTargets) SetDynamoDBTargets(v []*DynamoDBTarget) *CrawlerTargets {
s.DynamoDBTargets = v
return s
} | go | func (s *CrawlerTargets) SetDynamoDBTargets(v []*DynamoDBTarget) *CrawlerTargets {
s.DynamoDBTargets = v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerTargets",
")",
"SetDynamoDBTargets",
"(",
"v",
"[",
"]",
"*",
"DynamoDBTarget",
")",
"*",
"CrawlerTargets",
"{",
"s",
".",
"DynamoDBTargets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetDynamoDBTargets sets the DynamoDBTargets field's value. | [
"SetDynamoDBTargets",
"sets",
"the",
"DynamoDBTargets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12177-L12180 |
154,690 | aws/aws-sdk-go | service/glue/api.go | SetJdbcTargets | func (s *CrawlerTargets) SetJdbcTargets(v []*JdbcTarget) *CrawlerTargets {
s.JdbcTargets = v
return s
} | go | func (s *CrawlerTargets) SetJdbcTargets(v []*JdbcTarget) *CrawlerTargets {
s.JdbcTargets = v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerTargets",
")",
"SetJdbcTargets",
"(",
"v",
"[",
"]",
"*",
"JdbcTarget",
")",
"*",
"CrawlerTargets",
"{",
"s",
".",
"JdbcTargets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJdbcTargets sets the JdbcTargets field's value. | [
"SetJdbcTargets",
"sets",
"the",
"JdbcTargets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12183-L12186 |
154,691 | aws/aws-sdk-go | service/glue/api.go | SetS3Targets | func (s *CrawlerTargets) SetS3Targets(v []*S3Target) *CrawlerTargets {
s.S3Targets = v
return s
} | go | func (s *CrawlerTargets) SetS3Targets(v []*S3Target) *CrawlerTargets {
s.S3Targets = v
return s
} | [
"func",
"(",
"s",
"*",
"CrawlerTargets",
")",
"SetS3Targets",
"(",
"v",
"[",
"]",
"*",
"S3Target",
")",
"*",
"CrawlerTargets",
"{",
"s",
".",
"S3Targets",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetS3Targets sets the S3Targets field's value. | [
"SetS3Targets",
"sets",
"the",
"S3Targets",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L12189-L12192 |
154,692 | aws/aws-sdk-go | service/glue/api.go | SetStartOnCreation | func (s *CreateTriggerInput) SetStartOnCreation(v bool) *CreateTriggerInput {
s.StartOnCreation = &v
return s
} | go | func (s *CreateTriggerInput) SetStartOnCreation(v bool) *CreateTriggerInput {
s.StartOnCreation = &v
return s
} | [
"func",
"(",
"s",
"*",
"CreateTriggerInput",
")",
"SetStartOnCreation",
"(",
"v",
"bool",
")",
"*",
"CreateTriggerInput",
"{",
"s",
".",
"StartOnCreation",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetStartOnCreation sets the StartOnCreation field's value. | [
"SetStartOnCreation",
"sets",
"the",
"StartOnCreation",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L13964-L13967 |
154,693 | aws/aws-sdk-go | service/glue/api.go | SetConnectionPasswordEncryption | func (s *DataCatalogEncryptionSettings) SetConnectionPasswordEncryption(v *ConnectionPasswordEncryption) *DataCatalogEncryptionSettings {
s.ConnectionPasswordEncryption = v
return s
} | go | func (s *DataCatalogEncryptionSettings) SetConnectionPasswordEncryption(v *ConnectionPasswordEncryption) *DataCatalogEncryptionSettings {
s.ConnectionPasswordEncryption = v
return s
} | [
"func",
"(",
"s",
"*",
"DataCatalogEncryptionSettings",
")",
"SetConnectionPasswordEncryption",
"(",
"v",
"*",
"ConnectionPasswordEncryption",
")",
"*",
"DataCatalogEncryptionSettings",
"{",
"s",
".",
"ConnectionPasswordEncryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
... | // SetConnectionPasswordEncryption sets the ConnectionPasswordEncryption field's value. | [
"SetConnectionPasswordEncryption",
"sets",
"the",
"ConnectionPasswordEncryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L14314-L14317 |
154,694 | aws/aws-sdk-go | service/glue/api.go | SetPrivateAddress | func (s *DevEndpoint) SetPrivateAddress(v string) *DevEndpoint {
s.PrivateAddress = &v
return s
} | go | func (s *DevEndpoint) SetPrivateAddress(v string) *DevEndpoint {
s.PrivateAddress = &v
return s
} | [
"func",
"(",
"s",
"*",
"DevEndpoint",
")",
"SetPrivateAddress",
"(",
"v",
"string",
")",
"*",
"DevEndpoint",
"{",
"s",
".",
"PrivateAddress",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPrivateAddress sets the PrivateAddress field's value. | [
"SetPrivateAddress",
"sets",
"the",
"PrivateAddress",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15536-L15539 |
154,695 | aws/aws-sdk-go | service/glue/api.go | SetPublicAddress | func (s *DevEndpoint) SetPublicAddress(v string) *DevEndpoint {
s.PublicAddress = &v
return s
} | go | func (s *DevEndpoint) SetPublicAddress(v string) *DevEndpoint {
s.PublicAddress = &v
return s
} | [
"func",
"(",
"s",
"*",
"DevEndpoint",
")",
"SetPublicAddress",
"(",
"v",
"string",
")",
"*",
"DevEndpoint",
"{",
"s",
".",
"PublicAddress",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetPublicAddress sets the PublicAddress field's value. | [
"SetPublicAddress",
"sets",
"the",
"PublicAddress",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15542-L15545 |
154,696 | aws/aws-sdk-go | service/glue/api.go | SetCatalogEncryptionMode | func (s *EncryptionAtRest) SetCatalogEncryptionMode(v string) *EncryptionAtRest {
s.CatalogEncryptionMode = &v
return s
} | go | func (s *EncryptionAtRest) SetCatalogEncryptionMode(v string) *EncryptionAtRest {
s.CatalogEncryptionMode = &v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionAtRest",
")",
"SetCatalogEncryptionMode",
"(",
"v",
"string",
")",
"*",
"EncryptionAtRest",
"{",
"s",
".",
"CatalogEncryptionMode",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCatalogEncryptionMode sets the CatalogEncryptionMode field's value. | [
"SetCatalogEncryptionMode",
"sets",
"the",
"CatalogEncryptionMode",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15714-L15717 |
154,697 | aws/aws-sdk-go | service/glue/api.go | SetSseAwsKmsKeyId | func (s *EncryptionAtRest) SetSseAwsKmsKeyId(v string) *EncryptionAtRest {
s.SseAwsKmsKeyId = &v
return s
} | go | func (s *EncryptionAtRest) SetSseAwsKmsKeyId(v string) *EncryptionAtRest {
s.SseAwsKmsKeyId = &v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionAtRest",
")",
"SetSseAwsKmsKeyId",
"(",
"v",
"string",
")",
"*",
"EncryptionAtRest",
"{",
"s",
".",
"SseAwsKmsKeyId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetSseAwsKmsKeyId sets the SseAwsKmsKeyId field's value. | [
"SetSseAwsKmsKeyId",
"sets",
"the",
"SseAwsKmsKeyId",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15720-L15723 |
154,698 | aws/aws-sdk-go | service/glue/api.go | SetCloudWatchEncryption | func (s *EncryptionConfiguration) SetCloudWatchEncryption(v *CloudWatchEncryption) *EncryptionConfiguration {
s.CloudWatchEncryption = v
return s
} | go | func (s *EncryptionConfiguration) SetCloudWatchEncryption(v *CloudWatchEncryption) *EncryptionConfiguration {
s.CloudWatchEncryption = v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionConfiguration",
")",
"SetCloudWatchEncryption",
"(",
"v",
"*",
"CloudWatchEncryption",
")",
"*",
"EncryptionConfiguration",
"{",
"s",
".",
"CloudWatchEncryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetCloudWatchEncryption sets the CloudWatchEncryption field's value. | [
"SetCloudWatchEncryption",
"sets",
"the",
"CloudWatchEncryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15750-L15753 |
154,699 | aws/aws-sdk-go | service/glue/api.go | SetJobBookmarksEncryption | func (s *EncryptionConfiguration) SetJobBookmarksEncryption(v *JobBookmarksEncryption) *EncryptionConfiguration {
s.JobBookmarksEncryption = v
return s
} | go | func (s *EncryptionConfiguration) SetJobBookmarksEncryption(v *JobBookmarksEncryption) *EncryptionConfiguration {
s.JobBookmarksEncryption = v
return s
} | [
"func",
"(",
"s",
"*",
"EncryptionConfiguration",
")",
"SetJobBookmarksEncryption",
"(",
"v",
"*",
"JobBookmarksEncryption",
")",
"*",
"EncryptionConfiguration",
"{",
"s",
".",
"JobBookmarksEncryption",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] | // SetJobBookmarksEncryption sets the JobBookmarksEncryption field's value. | [
"SetJobBookmarksEncryption",
"sets",
"the",
"JobBookmarksEncryption",
"field",
"s",
"value",
"."
] | 6c4060605190fc6f00d63cd4e5572faa9f07345d | https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/glue/api.go#L15756-L15759 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.