/** * Copyright 2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY */ package services import ( "fmt" "strings" "github.com/softlayer/softlayer-go/datatypes" "github.com/softlayer/softlayer-go/session" "github.com/softlayer/softlayer-go/sl" ) // no documentation yet type Catalyst_Company_Type struct { Session *session.Session Options sl.Options } // GetCatalystCompanyTypeService returns an instance of the Catalyst_Company_Type SoftLayer service func GetCatalystCompanyTypeService(sess *session.Session) Catalyst_Company_Type { return Catalyst_Company_Type{Session: sess} } func (r Catalyst_Company_Type) Id(id int) Catalyst_Company_Type { r.Options.Id = &id return r } func (r Catalyst_Company_Type) Mask(mask string) Catalyst_Company_Type { if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { mask = fmt.Sprintf("mask[%s]", mask) } r.Options.Mask = mask return r } func (r Catalyst_Company_Type) Filter(filter string) Catalyst_Company_Type { r.Options.Filter = filter return r } func (r Catalyst_Company_Type) Limit(limit int) Catalyst_Company_Type { r.Options.Limit = &limit return r } func (r Catalyst_Company_Type) Offset(offset int) Catalyst_Company_Type { r.Options.Offset = &offset return r } // <<