// WithAction sets adds action to the URL.RawQuery
499700
func (r *Resource) WithAction(action string) *Resource {
	r.u.RawQuery = url.Values{
		"~action": []string{action},
	}.Encode()
	return r
}
1175341
func (s *RuleGroupUpdate) SetAction(v string) *RuleGroupUpdate {
	s.Action = &v
	return s
}
576467
func (s *GeoMatchSetUpdate) SetAction(v string) *GeoMatchSetUpdate {
	s.Action = &v
	return s
}
883829
func (s *ADMMessage) SetAction(v string) *ADMMessage {
	s.Action = &v
	return s
}
1093988
func (r *Resource) WithParameter(name string, value string) *Resource {
	parameter := url.Values{}
	parameter.Set(name, value)
	r.u.RawQuery = parameter.Encode()
	return r
}
1257542
func WithProject(factory ProjectFactory, action ProjectAction) func(context *cli.Context) error {
	return func(context *cli.Context) error {
		p, err := factory.Create(context)
		if err != nil {
			logrus.Fatalf("Failed to read project: %v", err)
		}
		return action(p, context)
	}
}
1025440
func (r *ActionResponse) AddAction(action *bees.Action) {
	r.actions = append(r.actions, action)
	r.Actions = append(r.Actions, prepareActionResponse(r.Context, action))
}
699265
func WithRoute(ctx context.Context, r *Route) context.Context {
	return context.WithValue(ctx, routeKey, r)
}
927584
func withSwarming(c context.Context, cli *SwarmingClient) context.Context {
	return context.WithValue(c, &swrKey, cli)
}
417394
func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption {
	s.Action = &v
	return s
}
920783
func (s *SizeConstraintSetUpdate) SetAction(v string) *SizeConstraintSetUpdate {
	s.Action = &v
	return s
}
1007858
func (r User_Permission_Group) AddAction(action *datatypes.User_Permission_Action) (err error) {
	var resp datatypes.Void
	params := []interface{}{
		action,
	}
	err = r.Session.DoRequest("SoftLayer_User_Permission_Group", "addAction", params, &r.Options, &resp)
	return
}
592993
func NewAction(name string, params map[string]interface{}) *Action {
	return &Action{name: name, params: params}
}
1350704
func (l *Live) SetAction(action string) *Live {
	l.liveReq.Action = action
	return l
}
266170
func (s *DefaultPushNotificationMessage) SetAction(v string) *DefaultPushNotificationMessage {
	s.Action = &v
	return s
}
648773
func (t *Module) SetAction(action cli.ActionFunc) *Module {
	t.Action = action
	return t
}
1250393
func (s *SampledHTTPRequest) SetAction(v string) *SampledHTTPRequest {
	s.Action = &v
	return s
}