google

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
}

type Groups

type Groups struct {
	Groups []Group `json:"groups"`
}

type Provider

type Provider struct{}

func New

func New() *Provider

func (*Provider) AuthorizationRequestParameters added in v0.2.4

func (*Provider) AuthorizationRequestParameters() map[string]string

func (*Provider) Groups

func (p *Provider) Groups(ctx context.Context, organization *unikornv1.Organization, accessToken string) ([]types.Group, error)

SCOPES:

* https://www.googleapis.com/auth/cloud-identity.groups.readonly * https://www.googleapis.com/auth/cloud-identity.groups * https://www.googleapis.com/auth/cloud-identity * https://www.googleapis.com/auth/cloud-platform

or...

GET https://admin.googleapis.com/admin/directory/v1/groups

https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups/list

{
  "kind": "admin#directory#groups",
  "etag": "\"g3-uukzdDYX7mcsQqDSmVT-0S6NlDP7HhGVb5s3jADM/5dl-BOsz4lBOImoI3lLrwvGKy1Q\"",
  "groups": [
    {
      "kind": "admin#directory#group",
      "id": "01rvwp1q1gini8q",
      "etag": "\"g3-uukzdDYX7mcsQqDSmVT-0S6NlDP7HhGVb5s3jADM/UQNupgFQfUCP_44mDaRNpM_vJqc\"",
      "email": "all@nscale.com",
      "name": "Everyone",
      "directMembersCount": "3",
      "description": "Everyone, use with extreme caution!",
      "adminCreated": true,
      "nonEditableAliases": [
        "all@nscale.com.test-google-a.com"
      ]
    }
  ],
  "nextPageToken": "Q2ljd0xDSmhiR3hBYm5OallXeGxMbU52YlNJc01pd2lNREF3TURBd09ETTRNV1F4TVRabFlTSklCR0MwanJqaUFXb2hjM1Z3Y0c5eWRDMW9hV1JsTFhObGRIUnBibWN0Y205emRHVnlMWEYxWlhKNQ=="
}

func (*Provider) RequiresAccessToken added in v0.2.12

func (*Provider) RequiresAccessToken() bool

func (*Provider) Scopes

func (*Provider) Scopes() []string

Jump to

Keyboard shortcuts

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