Documentation ¶
Overview ¶
Package cloudidentity provides access to the Cloud Identity API.
See https://cloud.google.com/identity/
Usage example:
import "github.com/nilleb/google-api-go-client/cloudidentity/v1beta1" ... cloudidentityService, err := cloudidentity.New(oauthHttpClient)
Index ¶
- type EntityKey
- type Group
- type GroupsCreateCall
- type GroupsDeleteCall
- type GroupsGetCall
- func (c *GroupsGetCall) Context(ctx context.Context) *GroupsGetCall
- func (c *GroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error)
- func (c *GroupsGetCall) Fields(s ...googleapi.Field) *GroupsGetCall
- func (c *GroupsGetCall) Header() http.Header
- func (c *GroupsGetCall) IfNoneMatch(entityTag string) *GroupsGetCall
- type GroupsLookupCall
- func (c *GroupsLookupCall) Context(ctx context.Context) *GroupsLookupCall
- func (c *GroupsLookupCall) Do(opts ...googleapi.CallOption) (*LookupGroupNameResponse, error)
- func (c *GroupsLookupCall) Fields(s ...googleapi.Field) *GroupsLookupCall
- func (c *GroupsLookupCall) GroupKeyId(groupKeyId string) *GroupsLookupCall
- func (c *GroupsLookupCall) GroupKeyNamespace(groupKeyNamespace string) *GroupsLookupCall
- func (c *GroupsLookupCall) Header() http.Header
- func (c *GroupsLookupCall) IfNoneMatch(entityTag string) *GroupsLookupCall
- type GroupsMembershipsCreateCall
- func (c *GroupsMembershipsCreateCall) Context(ctx context.Context) *GroupsMembershipsCreateCall
- func (c *GroupsMembershipsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GroupsMembershipsCreateCall) Fields(s ...googleapi.Field) *GroupsMembershipsCreateCall
- func (c *GroupsMembershipsCreateCall) Header() http.Header
- type GroupsMembershipsDeleteCall
- func (c *GroupsMembershipsDeleteCall) Context(ctx context.Context) *GroupsMembershipsDeleteCall
- func (c *GroupsMembershipsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GroupsMembershipsDeleteCall) Fields(s ...googleapi.Field) *GroupsMembershipsDeleteCall
- func (c *GroupsMembershipsDeleteCall) Header() http.Header
- type GroupsMembershipsGetCall
- func (c *GroupsMembershipsGetCall) Context(ctx context.Context) *GroupsMembershipsGetCall
- func (c *GroupsMembershipsGetCall) Do(opts ...googleapi.CallOption) (*Membership, error)
- func (c *GroupsMembershipsGetCall) Fields(s ...googleapi.Field) *GroupsMembershipsGetCall
- func (c *GroupsMembershipsGetCall) Header() http.Header
- func (c *GroupsMembershipsGetCall) IfNoneMatch(entityTag string) *GroupsMembershipsGetCall
- type GroupsMembershipsListCall
- func (c *GroupsMembershipsListCall) Context(ctx context.Context) *GroupsMembershipsListCall
- func (c *GroupsMembershipsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipsResponse, error)
- func (c *GroupsMembershipsListCall) Fields(s ...googleapi.Field) *GroupsMembershipsListCall
- func (c *GroupsMembershipsListCall) Header() http.Header
- func (c *GroupsMembershipsListCall) IfNoneMatch(entityTag string) *GroupsMembershipsListCall
- func (c *GroupsMembershipsListCall) PageSize(pageSize int64) *GroupsMembershipsListCall
- func (c *GroupsMembershipsListCall) PageToken(pageToken string) *GroupsMembershipsListCall
- func (c *GroupsMembershipsListCall) Pages(ctx context.Context, f func(*ListMembershipsResponse) error) error
- func (c *GroupsMembershipsListCall) View(view string) *GroupsMembershipsListCall
- type GroupsMembershipsLookupCall
- func (c *GroupsMembershipsLookupCall) Context(ctx context.Context) *GroupsMembershipsLookupCall
- func (c *GroupsMembershipsLookupCall) Do(opts ...googleapi.CallOption) (*LookupMembershipNameResponse, error)
- func (c *GroupsMembershipsLookupCall) Fields(s ...googleapi.Field) *GroupsMembershipsLookupCall
- func (c *GroupsMembershipsLookupCall) Header() http.Header
- func (c *GroupsMembershipsLookupCall) IfNoneMatch(entityTag string) *GroupsMembershipsLookupCall
- func (c *GroupsMembershipsLookupCall) MemberKeyId(memberKeyId string) *GroupsMembershipsLookupCall
- func (c *GroupsMembershipsLookupCall) MemberKeyNamespace(memberKeyNamespace string) *GroupsMembershipsLookupCall
- type GroupsMembershipsService
- func (r *GroupsMembershipsService) Create(parent string, membership *Membership) *GroupsMembershipsCreateCall
- func (r *GroupsMembershipsService) Delete(name string) *GroupsMembershipsDeleteCall
- func (r *GroupsMembershipsService) Get(name string) *GroupsMembershipsGetCall
- func (r *GroupsMembershipsService) List(parent string) *GroupsMembershipsListCall
- func (r *GroupsMembershipsService) Lookup(parent string) *GroupsMembershipsLookupCall
- type GroupsPatchCall
- func (c *GroupsPatchCall) Context(ctx context.Context) *GroupsPatchCall
- func (c *GroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *GroupsPatchCall) Fields(s ...googleapi.Field) *GroupsPatchCall
- func (c *GroupsPatchCall) Header() http.Header
- func (c *GroupsPatchCall) UpdateMask(updateMask string) *GroupsPatchCall
- type GroupsSearchCall
- func (c *GroupsSearchCall) Context(ctx context.Context) *GroupsSearchCall
- func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsResponse, error)
- func (c *GroupsSearchCall) Fields(s ...googleapi.Field) *GroupsSearchCall
- func (c *GroupsSearchCall) Header() http.Header
- func (c *GroupsSearchCall) IfNoneMatch(entityTag string) *GroupsSearchCall
- func (c *GroupsSearchCall) PageSize(pageSize int64) *GroupsSearchCall
- func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall
- func (c *GroupsSearchCall) Pages(ctx context.Context, f func(*SearchGroupsResponse) error) error
- func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall
- func (c *GroupsSearchCall) View(view string) *GroupsSearchCall
- type GroupsService
- func (r *GroupsService) Create(group *Group) *GroupsCreateCall
- func (r *GroupsService) Delete(name string) *GroupsDeleteCall
- func (r *GroupsService) Get(name string) *GroupsGetCall
- func (r *GroupsService) Lookup() *GroupsLookupCall
- func (r *GroupsService) Patch(name string, group *Group) *GroupsPatchCall
- func (r *GroupsService) Search() *GroupsSearchCall
- type ListMembershipsResponse
- type LookupGroupNameResponse
- type LookupMembershipNameResponse
- type Membership
- type MembershipRole
- type Operation
- type SearchGroupsResponse
- type Service
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityKey ¶
type EntityKey struct { // Id: The id of the entity within the given namespace. The id must be // unique // within its namespace. Id string `json:"id,omitempty"` // Namespace: Namespaces provide isolation for ids, i.e an id only needs // to be unique // within its namespace. // // Namespaces are currently only created as part of IdentitySource // creation // from Admin Console. A namespace // "identitysources/{identity_source_id}" is // created corresponding to every Identity Source `identity_source_id`. Namespace string `json:"namespace,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EntityKey: An EntityKey uniquely identifies an Entity. Namespaces are used to provide isolation for ids. A single Id can be reused across namespaces but the combination of a namespace and an id must be unique.
func (*EntityKey) MarshalJSON ¶
type Group ¶
type Group struct { // AdditionalGroupKeys: Optional. Additional entity key aliases for a // Group AdditionalGroupKeys []*EntityKey `json:"additionalGroupKeys,omitempty"` // CreateTime: The time when the Group was created. // Output only CreateTime string `json:"createTime,omitempty"` // Description: An extended description to help users determine the // purpose of a Group. For // example, you can include information about who should join the Group, // the // types of messages to send to the Group, links to FAQs about the // Group, or // related Groups. Maximum length is 4,096 characters. Description string `json:"description,omitempty"` // DisplayName: The Group's display name. DisplayName string `json:"displayName,omitempty"` // GroupKey: EntityKey of the Group. // // Must be set when creating a Group, read-only afterwards. GroupKey *EntityKey `json:"groupKey,omitempty"` // Labels: Labels for Group resource. // Required. // For creating Groups under a namespace, set label key // to // 'labels/system/groups/external' and label value as empty. Labels map[string]string `json:"labels,omitempty"` // Name: [Resource // name](https://cloud.google.com/apis/design/resource_names) of // the // Group in the format: `groups/{group_id}`, where group_id is the // unique id // assigned to the Group. // // Must be left blank while creating a Group Name string `json:"name,omitempty"` // Parent: The entity under which this Group resides in Cloud Identity // resource // hierarchy. Must be set when creating a Group, read-only // afterwards. // // Currently allowed types: 'identitysources' and 'customerId'. Parent string `json:"parent,omitempty"` // UpdateTime: The time when the Group was last updated. // Output only UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdditionalGroupKeys") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalGroupKeys") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Group: Resource representing a Group
func (*Group) MarshalJSON ¶
type GroupsCreateCall ¶
type GroupsCreateCall struct {
// contains filtered or unexported fields
}
func (*GroupsCreateCall) Context ¶
func (c *GroupsCreateCall) Context(ctx context.Context) *GroupsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsCreateCall) Do ¶
func (c *GroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "cloudidentity.groups.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsCreateCall) Fields ¶
func (c *GroupsCreateCall) Fields(s ...googleapi.Field) *GroupsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsCreateCall) Header ¶
func (c *GroupsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GroupsDeleteCall ¶
type GroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GroupsDeleteCall) Context ¶
func (c *GroupsDeleteCall) Context(ctx context.Context) *GroupsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsDeleteCall) Do ¶
func (c *GroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "cloudidentity.groups.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsDeleteCall) Fields ¶
func (c *GroupsDeleteCall) Fields(s ...googleapi.Field) *GroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsDeleteCall) Header ¶
func (c *GroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GroupsGetCall ¶
type GroupsGetCall struct {
// contains filtered or unexported fields
}
func (*GroupsGetCall) Context ¶
func (c *GroupsGetCall) Context(ctx context.Context) *GroupsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsGetCall) Do ¶
func (c *GroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error)
Do executes the "cloudidentity.groups.get" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsGetCall) Fields ¶
func (c *GroupsGetCall) Fields(s ...googleapi.Field) *GroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsGetCall) Header ¶
func (c *GroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsGetCall) IfNoneMatch ¶
func (c *GroupsGetCall) IfNoneMatch(entityTag string) *GroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GroupsLookupCall ¶
type GroupsLookupCall struct {
// contains filtered or unexported fields
}
func (*GroupsLookupCall) Context ¶
func (c *GroupsLookupCall) Context(ctx context.Context) *GroupsLookupCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsLookupCall) Do ¶
func (c *GroupsLookupCall) Do(opts ...googleapi.CallOption) (*LookupGroupNameResponse, error)
Do executes the "cloudidentity.groups.lookup" call. Exactly one of *LookupGroupNameResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LookupGroupNameResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsLookupCall) Fields ¶
func (c *GroupsLookupCall) Fields(s ...googleapi.Field) *GroupsLookupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsLookupCall) GroupKeyId ¶
func (c *GroupsLookupCall) GroupKeyId(groupKeyId string) *GroupsLookupCall
GroupKeyId sets the optional parameter "groupKey.id": The id of the entity within the given namespace. The id must be unique within its namespace.
func (*GroupsLookupCall) GroupKeyNamespace ¶
func (c *GroupsLookupCall) GroupKeyNamespace(groupKeyNamespace string) *GroupsLookupCall
GroupKeyNamespace sets the optional parameter "groupKey.namespace": Namespaces provide isolation for ids, i.e an id only needs to be unique within its namespace.
Namespaces are currently only created as part of IdentitySource creation from Admin Console. A namespace "identitysources/{identity_source_id}" is created corresponding to every Identity Source `identity_source_id`.
func (*GroupsLookupCall) Header ¶
func (c *GroupsLookupCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsLookupCall) IfNoneMatch ¶
func (c *GroupsLookupCall) IfNoneMatch(entityTag string) *GroupsLookupCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GroupsMembershipsCreateCall ¶
type GroupsMembershipsCreateCall struct {
// contains filtered or unexported fields
}
func (*GroupsMembershipsCreateCall) Context ¶
func (c *GroupsMembershipsCreateCall) Context(ctx context.Context) *GroupsMembershipsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsMembershipsCreateCall) Do ¶
func (c *GroupsMembershipsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "cloudidentity.groups.memberships.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsMembershipsCreateCall) Fields ¶
func (c *GroupsMembershipsCreateCall) Fields(s ...googleapi.Field) *GroupsMembershipsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsMembershipsCreateCall) Header ¶
func (c *GroupsMembershipsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GroupsMembershipsDeleteCall ¶
type GroupsMembershipsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GroupsMembershipsDeleteCall) Context ¶
func (c *GroupsMembershipsDeleteCall) Context(ctx context.Context) *GroupsMembershipsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsMembershipsDeleteCall) Do ¶
func (c *GroupsMembershipsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "cloudidentity.groups.memberships.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsMembershipsDeleteCall) Fields ¶
func (c *GroupsMembershipsDeleteCall) Fields(s ...googleapi.Field) *GroupsMembershipsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsMembershipsDeleteCall) Header ¶
func (c *GroupsMembershipsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GroupsMembershipsGetCall ¶
type GroupsMembershipsGetCall struct {
// contains filtered or unexported fields
}
func (*GroupsMembershipsGetCall) Context ¶
func (c *GroupsMembershipsGetCall) Context(ctx context.Context) *GroupsMembershipsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsMembershipsGetCall) Do ¶
func (c *GroupsMembershipsGetCall) Do(opts ...googleapi.CallOption) (*Membership, error)
Do executes the "cloudidentity.groups.memberships.get" call. Exactly one of *Membership or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Membership.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsMembershipsGetCall) Fields ¶
func (c *GroupsMembershipsGetCall) Fields(s ...googleapi.Field) *GroupsMembershipsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsMembershipsGetCall) Header ¶
func (c *GroupsMembershipsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsMembershipsGetCall) IfNoneMatch ¶
func (c *GroupsMembershipsGetCall) IfNoneMatch(entityTag string) *GroupsMembershipsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GroupsMembershipsListCall ¶
type GroupsMembershipsListCall struct {
// contains filtered or unexported fields
}
func (*GroupsMembershipsListCall) Context ¶
func (c *GroupsMembershipsListCall) Context(ctx context.Context) *GroupsMembershipsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsMembershipsListCall) Do ¶
func (c *GroupsMembershipsListCall) Do(opts ...googleapi.CallOption) (*ListMembershipsResponse, error)
Do executes the "cloudidentity.groups.memberships.list" call. Exactly one of *ListMembershipsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMembershipsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsMembershipsListCall) Fields ¶
func (c *GroupsMembershipsListCall) Fields(s ...googleapi.Field) *GroupsMembershipsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsMembershipsListCall) Header ¶
func (c *GroupsMembershipsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsMembershipsListCall) IfNoneMatch ¶
func (c *GroupsMembershipsListCall) IfNoneMatch(entityTag string) *GroupsMembershipsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GroupsMembershipsListCall) PageSize ¶
func (c *GroupsMembershipsListCall) PageSize(pageSize int64) *GroupsMembershipsListCall
PageSize sets the optional parameter "pageSize": Maximum number of Memberships to return.
MembershipView | Default | Maximum -------------- | ------- | ------- BASIC | 200 | 1000 FULL | 50 | 500
func (*GroupsMembershipsListCall) PageToken ¶
func (c *GroupsMembershipsListCall) PageToken(pageToken string) *GroupsMembershipsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request, if any
func (*GroupsMembershipsListCall) Pages ¶
func (c *GroupsMembershipsListCall) Pages(ctx context.Context, f func(*ListMembershipsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*GroupsMembershipsListCall) View ¶
func (c *GroupsMembershipsListCall) View(view string) *GroupsMembershipsListCall
View sets the optional parameter "view": Membership resource view to be returned. Defaults to MembershipView.BASIC.
Possible values:
"BASIC" "FULL"
type GroupsMembershipsLookupCall ¶
type GroupsMembershipsLookupCall struct {
// contains filtered or unexported fields
}
func (*GroupsMembershipsLookupCall) Context ¶
func (c *GroupsMembershipsLookupCall) Context(ctx context.Context) *GroupsMembershipsLookupCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsMembershipsLookupCall) Do ¶
func (c *GroupsMembershipsLookupCall) Do(opts ...googleapi.CallOption) (*LookupMembershipNameResponse, error)
Do executes the "cloudidentity.groups.memberships.lookup" call. Exactly one of *LookupMembershipNameResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LookupMembershipNameResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsMembershipsLookupCall) Fields ¶
func (c *GroupsMembershipsLookupCall) Fields(s ...googleapi.Field) *GroupsMembershipsLookupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsMembershipsLookupCall) Header ¶
func (c *GroupsMembershipsLookupCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsMembershipsLookupCall) IfNoneMatch ¶
func (c *GroupsMembershipsLookupCall) IfNoneMatch(entityTag string) *GroupsMembershipsLookupCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GroupsMembershipsLookupCall) MemberKeyId ¶
func (c *GroupsMembershipsLookupCall) MemberKeyId(memberKeyId string) *GroupsMembershipsLookupCall
MemberKeyId sets the optional parameter "memberKey.id": The id of the entity within the given namespace. The id must be unique within its namespace.
func (*GroupsMembershipsLookupCall) MemberKeyNamespace ¶
func (c *GroupsMembershipsLookupCall) MemberKeyNamespace(memberKeyNamespace string) *GroupsMembershipsLookupCall
MemberKeyNamespace sets the optional parameter "memberKey.namespace": Namespaces provide isolation for ids, i.e an id only needs to be unique within its namespace.
Namespaces are currently only created as part of IdentitySource creation from Admin Console. A namespace "identitysources/{identity_source_id}" is created corresponding to every Identity Source `identity_source_id`.
type GroupsMembershipsService ¶
type GroupsMembershipsService struct {
// contains filtered or unexported fields
}
func NewGroupsMembershipsService ¶
func NewGroupsMembershipsService(s *Service) *GroupsMembershipsService
func (*GroupsMembershipsService) Create ¶
func (r *GroupsMembershipsService) Create(parent string, membership *Membership) *GroupsMembershipsCreateCall
Create: Creates a Membership.
func (*GroupsMembershipsService) Delete ¶
func (r *GroupsMembershipsService) Delete(name string) *GroupsMembershipsDeleteCall
Delete: Deletes a Membership.
func (*GroupsMembershipsService) Get ¶
func (r *GroupsMembershipsService) Get(name string) *GroupsMembershipsGetCall
Get: Retrieves a Membership.
func (*GroupsMembershipsService) List ¶
func (r *GroupsMembershipsService) List(parent string) *GroupsMembershipsListCall
List: List Memberships within a Group.
func (*GroupsMembershipsService) Lookup ¶
func (r *GroupsMembershipsService) Lookup(parent string) *GroupsMembershipsLookupCall
Lookup: Looks up [resource name](https://cloud.google.com/apis/design/resource_names) of a Membership within a Group by member's EntityKey.
type GroupsPatchCall ¶
type GroupsPatchCall struct {
// contains filtered or unexported fields
}
func (*GroupsPatchCall) Context ¶
func (c *GroupsPatchCall) Context(ctx context.Context) *GroupsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsPatchCall) Do ¶
func (c *GroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "cloudidentity.groups.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsPatchCall) Fields ¶
func (c *GroupsPatchCall) Fields(s ...googleapi.Field) *GroupsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsPatchCall) Header ¶
func (c *GroupsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsPatchCall) UpdateMask ¶
func (c *GroupsPatchCall) UpdateMask(updateMask string) *GroupsPatchCall
UpdateMask sets the optional parameter "updateMask": Editable fields: `display_name`, `description`
type GroupsSearchCall ¶
type GroupsSearchCall struct {
// contains filtered or unexported fields
}
func (*GroupsSearchCall) Context ¶
func (c *GroupsSearchCall) Context(ctx context.Context) *GroupsSearchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GroupsSearchCall) Do ¶
func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsResponse, error)
Do executes the "cloudidentity.groups.search" call. Exactly one of *SearchGroupsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SearchGroupsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GroupsSearchCall) Fields ¶
func (c *GroupsSearchCall) Fields(s ...googleapi.Field) *GroupsSearchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsSearchCall) Header ¶
func (c *GroupsSearchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*GroupsSearchCall) IfNoneMatch ¶
func (c *GroupsSearchCall) IfNoneMatch(entityTag string) *GroupsSearchCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*GroupsSearchCall) PageSize ¶
func (c *GroupsSearchCall) PageSize(pageSize int64) *GroupsSearchCall
PageSize sets the optional parameter "pageSize": The max number of groups to return. GroupView | Default | Maximum --------- | ------- | ------- BASIC | 200 | 1000 FULL | 50 | 500
func (*GroupsSearchCall) PageToken ¶
func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous search request, if any.
func (*GroupsSearchCall) Pages ¶
func (c *GroupsSearchCall) Pages(ctx context.Context, f func(*SearchGroupsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*GroupsSearchCall) Query ¶
func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall
Query sets the optional parameter "query": Query string for performing search on groups. Users can search on namespace and label attributes of groups. EXACT match ('=') is supported on namespace, and CONTAINS match (':') is supported on labels. This is a `required` field. Multiple queries can be combined using `AND` operator. The operator is case sensitive. An example query would be: "namespace=<namespace_value> AND labels:<labels_value>".
func (*GroupsSearchCall) View ¶
func (c *GroupsSearchCall) View(view string) *GroupsSearchCall
View sets the optional parameter "view": Group resource view to be returned. Defaults to [GroupView.BASIC]().
Possible values:
"BASIC" "FULL"
type GroupsService ¶
type GroupsService struct { Memberships *GroupsMembershipsService // contains filtered or unexported fields }
func NewGroupsService ¶
func NewGroupsService(s *Service) *GroupsService
func (*GroupsService) Create ¶
func (r *GroupsService) Create(group *Group) *GroupsCreateCall
Create: Creates a Group.
func (*GroupsService) Delete ¶
func (r *GroupsService) Delete(name string) *GroupsDeleteCall
Delete: Deletes a Group.
func (*GroupsService) Get ¶
func (r *GroupsService) Get(name string) *GroupsGetCall
Get: Retrieves a Group.
func (*GroupsService) Lookup ¶
func (r *GroupsService) Lookup() *GroupsLookupCall
Lookup: Looks up [resource name](https://cloud.google.com/apis/design/resource_names) of a Group by its EntityKey.
func (*GroupsService) Patch ¶
func (r *GroupsService) Patch(name string, group *Group) *GroupsPatchCall
Patch: Updates a Group.
func (*GroupsService) Search ¶
func (r *GroupsService) Search() *GroupsSearchCall
Search: Searches for Groups.
type ListMembershipsResponse ¶
type ListMembershipsResponse struct { // Memberships: List of Memberships Memberships []*Membership `json:"memberships,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no // more results available for listing. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Memberships") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Memberships") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ListMembershipsResponse) MarshalJSON ¶
func (s *ListMembershipsResponse) MarshalJSON() ([]byte, error)
type LookupGroupNameResponse ¶
type LookupGroupNameResponse struct { // Name: [Resource // name](https://cloud.google.com/apis/design/resource_names) of // the // Group in the format: `groups/{group_id}`, where `group_id` is the // unique id // assigned to the Group. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LookupGroupNameResponse) MarshalJSON ¶
func (s *LookupGroupNameResponse) MarshalJSON() ([]byte, error)
type LookupMembershipNameResponse ¶
type LookupMembershipNameResponse struct { // Name: [Resource // name](https://cloud.google.com/apis/design/resource_names) of // the // Membership being looked up. // // Format: `groups/{group_id}/memberships/{member_id}`, where `group_id` // is // the unique id assigned to the Group to which Membership belongs to, // and // `member_id` is the unique id assigned to the member. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LookupMembershipNameResponse) MarshalJSON ¶
func (s *LookupMembershipNameResponse) MarshalJSON() ([]byte, error)
type Membership ¶
type Membership struct { // CreateTime: Creation timestamp of the Membership. CreateTime string `json:"createTime,omitempty"` // MemberKey: EntityKey of the entity to be added as the member. Must be // set while // creating a Membership, read-only afterwards. // // Currently allowed entity types: `Users`, `Groups`. MemberKey *EntityKey `json:"memberKey,omitempty"` // Name: [Resource // name](https://cloud.google.com/apis/design/resource_names) of // the // Membership in the format: // `groups/{group_id}/memberships/{member_id}`, // where group_id is the unique id assigned to the Group to which // Membership // belongs to, and member_id is the unique id assigned to the // member // // Must be left blank while creating a Membership. Name string `json:"name,omitempty"` // Roles: Roles for a member within the Group. // // Currently supported MembershipRoles: "MEMBER". Roles []*MembershipRole `json:"roles,omitempty"` // UpdateTime: Last updated timestamp of the Membership. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Membership: Resource representing a Membership within a Group
func (*Membership) MarshalJSON ¶
func (s *Membership) MarshalJSON() ([]byte, error)
type MembershipRole ¶
type MembershipRole struct { // Name: MembershipRole in string format. // // Currently supported MembershipRoles: "MEMBER". Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MembershipRole: Resource representing a role within a Membership.
func (*MembershipRole) MarshalJSON ¶
func (s *MembershipRole) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. // If `true`, the operation is completed, and either `error` or // `response` is // available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *Status `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. // It typically // contains progress information and common metadata such as create // time. // Some services might not provide such metadata. Any method that // returns a // long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that // originally returns it. If you use the default HTTP mapping, // the // `name` should have the format of `operations/some/unique/name`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. // If the original // method returns no data on success, such as `Delete`, the response // is // `google.protobuf.Empty`. If the original method is // standard // `Get`/`Create`/`Update`, the response should be the resource. For // other // methods, the response should have the type `XxxResponse`, where // `Xxx` // is the original method name. For example, if the original method // name // is `TakeSnapshot()`, the inferred response type // is // `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type SearchGroupsResponse ¶
type SearchGroupsResponse struct { // Groups: List of Groups satisfying the search query. Groups []*Group `json:"groups,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no // more results available for specified query. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Groups") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Groups") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SearchGroupsResponse) MarshalJSON ¶
func (s *SearchGroupsResponse) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Groups *GroupsService // contains filtered or unexported fields }
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of // message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any // user-facing error message should be localized and sent in // the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be:
- Simple to use and understand for most users - Flexible enough to meet unexpected needs
Overview ¶
The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions.
Language mapping ¶
The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.
Other uses ¶
The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.
Example uses of this error model include:
- Partial errors. If a service needs to return partial errors to the client,
it may embed the `Status` in the normal response to indicate the
partial
errors.
- Workflow errors. A typical workflow has multiple steps. Each step may
have a `Status` message for error reporting.
- Batch operations. If a client uses batch request and batch response, the
`Status` message should be used directly inside batch response,
one for
each error sub-response.
- Asynchronous operations. If an API call embeds asynchronous operation
results in its response, the status of those operations should
be
represented directly using the `Status` message.
- Logging. If some API errors are stored in logs, the message `Status` could
be used directly after any stripping needed for security/privacy
reasons.