Do executes the "cloudresourcemanager.organizations.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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.

Do is referenced in 0 repositories



// Filter sets the optional parameter "filter": An optional query string
// used to filter the Organizations to return in the response. Filter
// rules are case-insensitive. Organizations may be filtered by
// `owner.directoryCustomerId` or by `domain`, where the domain is a
// Google for Work domain, for example: |Filter|Description|
// |------|-----------|
// |owner.directorycustomerid:123456789|Organizations with
// `owner.directory_customer_id` equal to `123456789`.|
// ||Organizations corresponding to the domain
// ``.| This field is optional.
func (c *OrganizationsListCall) Filter(filter string) *OrganizationsListCall {
	c.urlParams_.Set("filter", filter)
	return c

// PageSize sets the optional parameter "pageSize": The maximum number
// of Organizations to return in the response. This field is optional.
func (c *OrganizationsListCall) PageSize(pageSize int64) *OrganizationsListCall {
	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
	return c

// PageToken sets the optional parameter "pageToken": A pagination token
// returned from a previous call to `ListOrganizations` that indicates
// from where listing should continue. This field is optional.
func (c *OrganizationsListCall) PageToken(pageToken string) *OrganizationsListCall {
	c.urlParams_.Set("pageToken", pageToken)
	return c

// Fields allows partial responses to be retrieved. See
// for more information.
func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
	c.urlParams_.Set("fields", googleapi.CombineFields(s))
	return c

// 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 (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
	c.ifNoneMatch_ = entityTag
	return c

// 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 (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
	c.ctx_ = ctx
	return c

func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {