googleworkspace

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: MPL-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClientScopes = []string{
	"https://www.googleapis.com/auth/gmail.settings.basic",
	"https://www.googleapis.com/auth/gmail.settings.sharing",
	"https://www.googleapis.com/auth/chrome.management.policy",
	"https://www.googleapis.com/auth/cloud-platform",
	"https://www.googleapis.com/auth/admin.directory.customer",
	"https://www.googleapis.com/auth/admin.directory.domain",
	"https://www.googleapis.com/auth/admin.directory.group",
	"https://www.googleapis.com/auth/admin.directory.orgunit",
	"https://www.googleapis.com/auth/admin.directory.rolemanagement",
	"https://www.googleapis.com/auth/admin.directory.userschema",
	"https://www.googleapis.com/auth/admin.directory.user",
	"https://www.googleapis.com/auth/apps.groups.settings",
}

Functions

func CameltoSnake

func CameltoSnake(s string) string

This will translate a snake cased string to a camel case string Note: the first letter of the camel case string will be lower case

func GetChromePoliciesService added in v0.3.0

func GetChromePoliciesService(chromePolicyService *chromepolicy.Service) (*chromepolicy.CustomersPoliciesService, diag.Diagnostics)

func GetChromePolicySchemasService added in v0.3.0

func GetChromePolicySchemasService(chromePolicyService *chromepolicy.Service) (*chromepolicy.CustomersPolicySchemasService, diag.Diagnostics)

func GetDomainAliasesService added in v0.3.0

func GetDomainAliasesService(directoryService *directory.Service) (*directory.DomainAliasesService, diag.Diagnostics)

func GetDomainsService

func GetDomainsService(directoryService *directory.Service) (*directory.DomainsService, diag.Diagnostics)

func GetGmailSendAsAliasService added in v0.4.0

func GetGmailSendAsAliasService(gmailService *gmail.Service) (*gmail.UsersSettingsSendAsService, diag.Diagnostics)

func GetGroupAliasService

func GetGroupAliasService(groupsService *directory.GroupsService) (*directory.GroupsAliasesService, diag.Diagnostics)

func GetGroupsService

func GetGroupsService(directoryService *directory.Service) (*directory.GroupsService, diag.Diagnostics)

func GetGroupsSettingsService

func GetGroupsSettingsService(groupsSettingsService *groupssettings.Service) (*groupssettings.GroupsService, diag.Diagnostics)

func GetMembersService

func GetMembersService(directoryService *directory.Service) (*directory.MembersService, diag.Diagnostics)

func GetOrgUnitsService added in v0.2.0

func GetOrgUnitsService(directoryService *directory.Service) (*directory.OrgunitsService, diag.Diagnostics)

func GetPrivilegesService added in v0.2.0

func GetPrivilegesService(directoryService *directory.Service) (*directory.PrivilegesService, diag.Diagnostics)

func GetRoleAssignmentsService added in v0.2.0

func GetRoleAssignmentsService(directoryService *directory.Service) (*directory.RoleAssignmentsService, diag.Diagnostics)

func GetRolesService added in v0.2.0

func GetRolesService(directoryService *directory.Service) (*directory.RolesService, diag.Diagnostics)

func GetSchemasService

func GetSchemasService(directoryService *directory.Service) (*directory.SchemasService, diag.Diagnostics)

func GetUserAliasService

func GetUserAliasService(usersService *directory.UsersService) (*directory.UsersAliasesService, diag.Diagnostics)

func GetUsersService

func GetUsersService(directoryService *directory.Service) (*directory.UsersService, diag.Diagnostics)

func IsNotConsistent

func IsNotConsistent(err error) bool

func New

func New(version string) func() *schema.Provider

func NewTransportWithDefaultRetries added in v0.5.0

func NewTransportWithDefaultRetries(t http.RoundTripper) *retryTransport

NewTransportWithDefaultRetries constructs a default retryTransport that will retry common temporary errors

func NewTransportWithScrubbedLogs added in v0.5.0

func NewTransportWithScrubbedLogs(name string, t http.RoundTripper) *loggingTransport

func Nprintf

func Nprintf(format string, params map[string]interface{}) string

This is a Printf sibling (Nprintf; Named Printf), which handles strings like Nprintf("Hello %{target}!", map[string]interface{}{"target":"world"}) == "Hello world!". This is particularly useful for generated tests, where we don't want to use Printf, since that would require us to generate a very particular ordering of arguments.

func SnakeToCamel

func SnakeToCamel(s string) string

This will translate a snake cased string to a camel case string Note: the first letter of the camel case string will be lower case

Types

type MemberChange added in v0.5.0

type MemberChange struct {
	Old, New map[string]interface{}
}

type RetryErrorPredicateFunc added in v0.5.0

type RetryErrorPredicateFunc func(error) (bool, string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL