github.com/anthropics/anthropic-sdk-go@v1.70.1/betaorganizationfederation.go (about) 1 // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 3 package anthropic 4 5 import ( 6 "github.com/anthropics/anthropic-sdk-go/option" 7 ) 8 9 // BetaOrganizationFederationService contains methods and other services that help 10 // with interacting with the anthropic API. 11 // 12 // Note, unlike clients, this service does not read variables from the environment 13 // automatically. You should not instantiate this service directly, and instead use 14 // the [NewBetaOrganizationFederationService] method instead. 15 type BetaOrganizationFederationService struct { 16 Options []option.RequestOption 17 Issuers BetaOrganizationFederationIssuerService 18 Rules BetaOrganizationFederationRuleService 19 } 20 21 // NewBetaOrganizationFederationService generates a new service that applies the 22 // given options to each request. These options are applied after the parent 23 // client's options (if there is one), and before any request-specific options. 24 func NewBetaOrganizationFederationService(opts ...option.RequestOption) (r BetaOrganizationFederationService) { 25 r = BetaOrganizationFederationService{} 26 r.Options = opts 27 r.Issuers = NewBetaOrganizationFederationIssuerService(opts...) 28 r.Rules = NewBetaOrganizationFederationRuleService(opts...) 29 return 30 }