Autogenerated update (2020-01-15)
Update: - cloudidentity_v1 - cloudidentity_v1beta1 - sourcerepo_v1
This commit is contained in:
parent
176ef55bbe
commit
0a5261b583
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/identity/
|
# @see https://cloud.google.com/identity/
|
||||||
module CloudidentityV1
|
module CloudidentityV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20191015'
|
REVISION = '20200110'
|
||||||
|
|
||||||
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
||||||
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
||||||
|
|
|
@ -141,7 +141,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# List groups within a customer or a domain.
|
# Lists groups within a customer or a domain.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The default page size is 200 (max 1000) for the BASIC view, and 50
|
# The default page size is 200 (max 1000) for the BASIC view, and 50
|
||||||
# (max 500) for the FULL view.
|
# (max 500) for the FULL view.
|
||||||
|
@ -408,7 +408,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# List Memberships within a Group.
|
# Lists Memberships within a Group.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
||||||
# Group to list Memberships within.
|
# Group to list Memberships within.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/identity/
|
# @see https://cloud.google.com/identity/
|
||||||
module CloudidentityV1beta1
|
module CloudidentityV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20191027'
|
REVISION = '20200110'
|
||||||
|
|
||||||
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
||||||
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
||||||
|
|
|
@ -22,23 +22,29 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudidentityV1beta1
|
module CloudidentityV1beta1
|
||||||
|
|
||||||
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
|
# A unique identifier for an entity in the Cloud Identity Groups API.
|
||||||
# isolation for ids. A single Id can be reused across namespaces but the
|
# An entity can represent either a group with an optional `namespace` or a user
|
||||||
# combination of a namespace and an id must be unique.
|
# without a `namespace`. The combination of `id` and `namespace` must be
|
||||||
|
# unique; however, the same `id` can be used with different `namespace`s.
|
||||||
class EntityKey
|
class EntityKey
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The id of the entity within the given namespace. The id must be unique
|
# The ID of the entity.
|
||||||
# within its namespace.
|
# For Google-managed entities, the `id` must be the email address of a group
|
||||||
|
# or user.
|
||||||
|
# For external-identity-mapped entities, the `id` must be a string conforming
|
||||||
|
# to the Identity Source's requirements.
|
||||||
|
# Must be unique within a `namespace`.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
|
||||||
# Namespaces provide isolation for ids, i.e an id only needs to be unique
|
# The namespace in which the entity exists.
|
||||||
# within its namespace.
|
# If not specified, the `EntityKey` represents a Google-managed entity such
|
||||||
# Namespaces are currently only created as part of IdentitySource creation
|
# as a Google user or a Google Group.
|
||||||
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
|
# If specified, the `EntityKey` represents an external-identity-mapped group
|
||||||
# created corresponding to every Identity Source `identity_source_id`.
|
# created through Admin Console. Must be of the form
|
||||||
|
# `identitysources/`identity_source_id`.
|
||||||
# Corresponds to the JSON property `namespace`
|
# Corresponds to the JSON property `namespace`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :namespace
|
attr_accessor :namespace
|
||||||
|
@ -54,68 +60,69 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Resource representing a Group
|
# A group within the Cloud Identity Groups API.
|
||||||
|
# A `Group` is a collection of entities, where each entity is either a user or
|
||||||
|
# another group.
|
||||||
class Group
|
class Group
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Optional. Additional entity key aliases for a Group
|
# Optional. Additional entity key aliases for a Group.
|
||||||
# Corresponds to the JSON property `additionalGroupKeys`
|
# Corresponds to the JSON property `additionalGroupKeys`
|
||||||
# @return [Array<Google::Apis::CloudidentityV1beta1::EntityKey>]
|
# @return [Array<Google::Apis::CloudidentityV1beta1::EntityKey>]
|
||||||
attr_accessor :additional_group_keys
|
attr_accessor :additional_group_keys
|
||||||
|
|
||||||
# Output only. The time when the Group was created.
|
# Output only. The time when the `Group` was created.
|
||||||
# Output only
|
|
||||||
# Corresponds to the JSON property `createTime`
|
# Corresponds to the JSON property `createTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :create_time
|
attr_accessor :create_time
|
||||||
|
|
||||||
# An extended description to help users determine the purpose of a Group. For
|
# An extended description to help users determine the purpose of a `Group`.
|
||||||
# example, you can include information about who should join the Group, the
|
# Must not be longer than 4,096 characters.
|
||||||
# types of messages to send to the Group, links to FAQs about the Group, or
|
|
||||||
# related Groups. Maximum length is 4,096 characters.
|
|
||||||
# Corresponds to the JSON property `description`
|
# Corresponds to the JSON property `description`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :description
|
attr_accessor :description
|
||||||
|
|
||||||
# The Group's display name.
|
# The display name of the `Group`.
|
||||||
# Corresponds to the JSON property `displayName`
|
# Corresponds to the JSON property `displayName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
|
# A unique identifier for an entity in the Cloud Identity Groups API.
|
||||||
# isolation for ids. A single Id can be reused across namespaces but the
|
# An entity can represent either a group with an optional `namespace` or a user
|
||||||
# combination of a namespace and an id must be unique.
|
# without a `namespace`. The combination of `id` and `namespace` must be
|
||||||
|
# unique; however, the same `id` can be used with different `namespace`s.
|
||||||
# Corresponds to the JSON property `groupKey`
|
# Corresponds to the JSON property `groupKey`
|
||||||
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
|
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
|
||||||
attr_accessor :group_key
|
attr_accessor :group_key
|
||||||
|
|
||||||
# Required. Labels for Group resource.
|
# Required. The labels that apply to the `Group`.
|
||||||
# Required.
|
# Must not contain more than one entry. Must contain the entry
|
||||||
# For creating Groups under a namespace, set label key to
|
# `'system/groups/external': ''` if the `Group` is an
|
||||||
# 'labels/system/groups/external' and label value as empty.
|
# external-identity-mapped group or
|
||||||
|
# `'cloudidentity.googleapis.com/groups.discussion_forum': ''` if the `Group`
|
||||||
|
# is a Google Group.
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
|
||||||
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
# Output only. The [resource name](https://cloud.google.com/apis/design/
|
||||||
# resource_names) of the
|
# resource_names) of
|
||||||
# Group in the format: `groups/`group_id``, where group_id is the unique id
|
# the `Group`.
|
||||||
# assigned to the Group.
|
# Shall be of the form `groups/`group_id``.
|
||||||
# Must be left blank while creating a Group
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Required. Immutable. The entity under which this Group resides in Cloud
|
# Required. Immutable. The resource name of the entity under which this `Group`
|
||||||
# Identity resource
|
# resides in the
|
||||||
# hierarchy. Must be set when creating a Group, read-only afterwards.
|
# Cloud Identity resource hierarchy.
|
||||||
# Currently allowed types: 'identitysources'.
|
# Must be of the form `identitysources/`identity_source_id`` for external-
|
||||||
|
# identity-mapped groups or `customers/`customer_id`` for Google Groups.
|
||||||
# Corresponds to the JSON property `parent`
|
# Corresponds to the JSON property `parent`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :parent
|
attr_accessor :parent
|
||||||
|
|
||||||
# Output only. The time when the Group was last updated.
|
# Output only. The time when the `Group` was last updated.
|
||||||
# Output only
|
|
||||||
# Corresponds to the JSON property `updateTime`
|
# Corresponds to the JSON property `updateTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :update_time
|
attr_accessor :update_time
|
||||||
|
@ -138,17 +145,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# The response message for MembershipsService.ListMemberships.
|
||||||
class ListMembershipsResponse
|
class ListMembershipsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of Memberships
|
# The `Membership`s under the specified `parent`.
|
||||||
# Corresponds to the JSON property `memberships`
|
# Corresponds to the JSON property `memberships`
|
||||||
# @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
|
# @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
|
||||||
attr_accessor :memberships
|
attr_accessor :memberships
|
||||||
|
|
||||||
# Token to retrieve the next page of results, or empty if there are no
|
# A continuation token to retrieve the next page of results, or empty if
|
||||||
# more results available for listing.
|
# there are no more results available.
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
@ -164,13 +171,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# The response message for GroupsService.LookupGroupName.
|
||||||
class LookupGroupNameResponse
|
class LookupGroupNameResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
|
||||||
# Group in the format: `groups/`group_id``, where `group_id` is the unique id
|
# the looked-up `Group`.
|
||||||
# assigned to the Group.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -185,15 +191,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# The response message for MembershipsService.LookupMembershipName.
|
||||||
class LookupMembershipNameResponse
|
class LookupMembershipNameResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
|
||||||
# Membership being looked up.
|
# the looked-up `Membership`.
|
||||||
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
|
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
|
||||||
# the unique id assigned to the Group to which Membership belongs to, and
|
|
||||||
# `member_id` is the unique id assigned to the member.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -208,39 +212,41 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Resource representing a Membership within a Group
|
# A membership within the Cloud Identity Groups API.
|
||||||
|
# A `Membership` defines a relationship between a `Group` and an entity
|
||||||
|
# belonging to that `Group`, referred to as a "member".
|
||||||
class Membership
|
class Membership
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Output only. Creation timestamp of the Membership.
|
# Output only. The time when the `Membership` was created.
|
||||||
# Corresponds to the JSON property `createTime`
|
# Corresponds to the JSON property `createTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :create_time
|
attr_accessor :create_time
|
||||||
|
|
||||||
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
|
# A unique identifier for an entity in the Cloud Identity Groups API.
|
||||||
# isolation for ids. A single Id can be reused across namespaces but the
|
# An entity can represent either a group with an optional `namespace` or a user
|
||||||
# combination of a namespace and an id must be unique.
|
# without a `namespace`. The combination of `id` and `namespace` must be
|
||||||
|
# unique; however, the same `id` can be used with different `namespace`s.
|
||||||
# Corresponds to the JSON property `memberKey`
|
# Corresponds to the JSON property `memberKey`
|
||||||
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
|
# @return [Google::Apis::CloudidentityV1beta1::EntityKey]
|
||||||
attr_accessor :member_key
|
attr_accessor :member_key
|
||||||
|
|
||||||
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
# Output only. The [resource name](https://cloud.google.com/apis/design/
|
||||||
# resource_names) of the
|
# resource_names) of
|
||||||
# Membership in the format: `groups/`group_id`/memberships/`member_id``,
|
# the `Membership`.
|
||||||
# where group_id is the unique id assigned to the Group to which Membership
|
# Shall be of the form `groups/`group_id`/memberships/`membership_id``.
|
||||||
# belongs to, and member_id is the unique id assigned to the member
|
|
||||||
# Must be left blank while creating a Membership.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Roles for a member within the Group.
|
# The `MembershipRole`s that apply to the `Membership`.
|
||||||
# Currently supported MembershipRoles: `"MEMBER", "OWNER", "MANAGER"`.
|
# If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`.
|
||||||
|
# Must not contain duplicate `MembershipRole`s with the same `name`.
|
||||||
# Corresponds to the JSON property `roles`
|
# Corresponds to the JSON property `roles`
|
||||||
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
|
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipRole>]
|
||||||
attr_accessor :roles
|
attr_accessor :roles
|
||||||
|
|
||||||
# Output only. Last updated timestamp of the Membership.
|
# Output only. The time when the `Membership` was last updated.
|
||||||
# Corresponds to the JSON property `updateTime`
|
# Corresponds to the JSON property `updateTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :update_time
|
attr_accessor :update_time
|
||||||
|
@ -259,12 +265,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Resource representing a role within a Membership.
|
# A membership role within the Cloud Identity Groups API.
|
||||||
|
# A `MembershipRole` defines the privileges granted to a `Membership`.
|
||||||
class MembershipRole
|
class MembershipRole
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# MembershipRole in string format.
|
# The name of the `MembershipRole`.
|
||||||
# Currently supported MembershipRoles: `"MEMBER", "OWNER", "MANAGER"`.
|
# Must be one of `OWNER`, `MANAGER`, `MEMBER`.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -343,17 +350,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# The response message for GroupsService.SearchGroups.
|
||||||
class SearchGroupsResponse
|
class SearchGroupsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of Groups satisfying the search query.
|
# The `Group`s that match the search query.
|
||||||
# Corresponds to the JSON property `groups`
|
# Corresponds to the JSON property `groups`
|
||||||
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
|
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
|
||||||
attr_accessor :groups
|
attr_accessor :groups
|
||||||
|
|
||||||
# Token to retrieve the next page of results, or empty if there are no
|
# A continuation token to retrieve the next page of results, or empty if
|
||||||
# more results available for specified query.
|
# there are no more results available.
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
|
@ -47,7 +47,7 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a Group.
|
# Creates a `Group`.
|
||||||
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object
|
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -77,11 +77,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes a Group.
|
# Deletes a `Group`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
|
||||||
# Group in the format: `groups/`group_id``, where `group_id` is the unique id
|
# the `Group` to retrieve.
|
||||||
# assigned to the Group.
|
# Must be of the form `groups/`group_id``.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -109,11 +109,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Retrieves a Group.
|
# Retrieves a `Group`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
|
||||||
# Group in the format: `groups/`group_id``, where `group_id` is the unique id
|
# the `Group` to retrieve.
|
||||||
# assigned to the Group.
|
# Must be of the form `groups/`group_id``.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -141,18 +141,23 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Looks up [resource
|
# Looks up the [resource
|
||||||
# name](https://cloud.google.com/apis/design/resource_names) of a Group by
|
# name](https://cloud.google.com/apis/design/resource_names) of a `Group` by
|
||||||
# its EntityKey.
|
# its `EntityKey`.
|
||||||
# @param [String] group_key_id
|
# @param [String] group_key_id
|
||||||
# The id of the entity within the given namespace. The id must be unique
|
# The ID of the entity.
|
||||||
# within its namespace.
|
# For Google-managed entities, the `id` must be the email address of a group
|
||||||
|
# or user.
|
||||||
|
# For external-identity-mapped entities, the `id` must be a string conforming
|
||||||
|
# to the Identity Source's requirements.
|
||||||
|
# Must be unique within a `namespace`.
|
||||||
# @param [String] group_key_namespace
|
# @param [String] group_key_namespace
|
||||||
# Namespaces provide isolation for ids, i.e an id only needs to be unique
|
# The namespace in which the entity exists.
|
||||||
# within its namespace.
|
# If not specified, the `EntityKey` represents a Google-managed entity such
|
||||||
# Namespaces are currently only created as part of IdentitySource creation
|
# as a Google user or a Google Group.
|
||||||
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
|
# If specified, the `EntityKey` represents an external-identity-mapped group
|
||||||
# created corresponding to every Identity Source `identity_source_id`.
|
# created through Admin Console. Must be of the form
|
||||||
|
# `identitysources/`identity_source_id`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -181,16 +186,16 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates a Group.
|
# Updates a `Group`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
# Output only. The [resource name](https://cloud.google.com/apis/design/
|
||||||
# resource_names) of the
|
# resource_names) of
|
||||||
# Group in the format: `groups/`group_id``, where group_id is the unique id
|
# the `Group`.
|
||||||
# assigned to the Group.
|
# Shall be of the form `groups/`group_id``.
|
||||||
# Must be left blank while creating a Group
|
|
||||||
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object
|
# @param [Google::Apis::CloudidentityV1beta1::Group] group_object
|
||||||
# @param [String] update_mask
|
# @param [String] update_mask
|
||||||
# Editable fields: `display_name`, `description`
|
# The fully-qualified names of fields to update.
|
||||||
|
# May only contain the following fields: `display_name`, `description`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -221,23 +226,31 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Searches for Groups.
|
# Searches for `Group`s matching a specified query.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The default page size is 200 (max 1000) for the BASIC view, and 50
|
# The maximum number of results to return.
|
||||||
# (max 500) for the FULL view.
|
# Note that the number of results returned may be less than this value even
|
||||||
|
# if there are more available results. To fetch all results, clients must
|
||||||
|
# continue calling this method repeatedly until the response no longer
|
||||||
|
# contains a `next_page_token`.
|
||||||
|
# If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for
|
||||||
|
# `GroupView.FULL`.
|
||||||
|
# Must not be greater than 1000 for `GroupView.BASIC` or 500 for
|
||||||
|
# `GroupView.FULL`.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# The next_page_token value returned from a previous search request, if any.
|
# The `next_page_token` value returned from a previous search request, if
|
||||||
|
# any.
|
||||||
# @param [String] query
|
# @param [String] query
|
||||||
# Query string for performing search on groups.
|
# The search query.
|
||||||
# Users can search on namespace and label attributes of groups.
|
# Only queries on the parent and labels of `Group`s are supported.
|
||||||
# EXACT match ('=') is supported on namespace, and CONTAINS match (':') is
|
# Must be specified in [Common Expression
|
||||||
# supported on labels. This is a `required` field.
|
# Language](https://opensource.google/projects/cel). May only contain
|
||||||
# Multiple queries can be combined using `AND` operator. The operator is case
|
# equality operators on the parent (e.g. `parent ==
|
||||||
# sensitive.
|
# 'customers/`customer_id`'`) and inclusion operators on labels (e.g.,
|
||||||
# An example query would be:
|
# `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`).
|
||||||
# "namespace=<namespace_value> AND labels:<labels_value>".
|
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# Group resource view to be returned. Defaults to [GroupView.BASIC]().
|
# The level of detail to be returned.
|
||||||
|
# If unspecified, defaults to `View.BASIC`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -268,11 +281,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a Membership.
|
# Creates a `Membership`.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The parent `Group` resource under which to create the `Membership`.
|
||||||
# Group to create Membership within. Format: `groups/`group_id``, where
|
# Must be of the form `groups/`group_id``.
|
||||||
# `group_id` is the unique id assigned to the Group.
|
|
||||||
# @param [Google::Apis::CloudidentityV1beta1::Membership] membership_object
|
# @param [Google::Apis::CloudidentityV1beta1::Membership] membership_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -303,13 +315,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes a Membership.
|
# Deletes a `Membership`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
|
||||||
# Membership to be deleted.
|
# the `Membership` to delete.
|
||||||
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
|
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
|
||||||
# the unique id assigned to the Group to which Membership belongs to, and
|
|
||||||
# member_id is the unique id assigned to the member.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -337,13 +347,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Retrieves a Membership.
|
# Retrieves a `Membership`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The [resource name](https://cloud.google.com/apis/design/resource_names) of
|
||||||
# Membership to be retrieved.
|
# the `Membership` to retrieve.
|
||||||
# Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
|
# Must be of the form `groups/`group_id`/memberships/`membership_id``.
|
||||||
# the unique id assigned to the Group to which Membership belongs to, and
|
|
||||||
# `member_id` is the unique id assigned to the member.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -371,19 +379,26 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# List Memberships within a Group.
|
# Lists the `Membership`s within a `Group`.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The parent `Group` resource under which to lookup the `Membership` name.
|
||||||
# Group to list Memberships within.
|
# Must be of the form `groups/`group_id``.
|
||||||
# Format: `groups/`group_id``, where `group_id` is the unique id assigned to
|
|
||||||
# the Group.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The default page size is 200 (max 1000) for the BASIC view, and 50
|
# The maximum number of results to return.
|
||||||
# (max 500) for the FULL view.
|
# Note that the number of results returned may be less than this value even
|
||||||
|
# if there are more available results. To fetch all results, clients must
|
||||||
|
# continue calling this method repeatedly until the response no longer
|
||||||
|
# contains a `next_page_token`.
|
||||||
|
# If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for
|
||||||
|
# `GroupView.FULL`.
|
||||||
|
# Must not be greater than 1000 for `GroupView.BASIC` or 500 for
|
||||||
|
# `GroupView.FULL`.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# The next_page_token value returned from a previous list request, if any
|
# The `next_page_token` value returned from a previous search request, if
|
||||||
|
# any.
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# Membership resource view to be returned. Defaults to MembershipView.BASIC.
|
# The level of detail to be returned.
|
||||||
|
# If unspecified, defaults to `MembershipView.BASIC`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -414,23 +429,26 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Looks up [resource
|
# Looks up the [resource
|
||||||
# name](https://cloud.google.com/apis/design/resource_names) of a Membership
|
# name](https://cloud.google.com/apis/design/resource_names) of a
|
||||||
# within a Group by member's EntityKey.
|
# `Membership` by its `EntityKey`.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# [Resource name](https://cloud.google.com/apis/design/resource_names) of the
|
# The parent `Group` resource under which to lookup the `Membership` name.
|
||||||
# Group to lookup Membership within.
|
# Must be of the form `groups/`group_id``.
|
||||||
# Format: `groups/`group_id``, where `group_id` is the unique id assigned to
|
|
||||||
# the Group.
|
|
||||||
# @param [String] member_key_id
|
# @param [String] member_key_id
|
||||||
# The id of the entity within the given namespace. The id must be unique
|
# The ID of the entity.
|
||||||
# within its namespace.
|
# For Google-managed entities, the `id` must be the email address of a group
|
||||||
|
# or user.
|
||||||
|
# For external-identity-mapped entities, the `id` must be a string conforming
|
||||||
|
# to the Identity Source's requirements.
|
||||||
|
# Must be unique within a `namespace`.
|
||||||
# @param [String] member_key_namespace
|
# @param [String] member_key_namespace
|
||||||
# Namespaces provide isolation for ids, i.e an id only needs to be unique
|
# The namespace in which the entity exists.
|
||||||
# within its namespace.
|
# If not specified, the `EntityKey` represents a Google-managed entity such
|
||||||
# Namespaces are currently only created as part of IdentitySource creation
|
# as a Google user or a Google Group.
|
||||||
# from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
|
# If specified, the `EntityKey` represents an external-identity-mapped group
|
||||||
# created corresponding to every Identity Source `identity_source_id`.
|
# created through Admin Console. Must be of the form
|
||||||
|
# `identitysources/`identity_source_id`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/source-repositories/docs/apis
|
# @see https://cloud.google.com/source-repositories/docs/apis
|
||||||
module SourcerepoV1
|
module SourcerepoV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190611'
|
REVISION = '20200102'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -39,7 +39,7 @@ module Google
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_READ",
|
# "log_type": "DATA_READ",
|
||||||
# "exempted_members": [
|
# "exempted_members": [
|
||||||
# "user:foo@gmail.com"
|
# "user:jose@example.com"
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
|
@ -51,7 +51,7 @@ module Google
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
# "service": "fooservice.googleapis.com"
|
# "service": "sampleservice.googleapis.com"
|
||||||
# "audit_log_configs": [
|
# "audit_log_configs": [
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_READ",
|
# "log_type": "DATA_READ",
|
||||||
|
@ -59,16 +59,16 @@ module Google
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_WRITE",
|
# "log_type": "DATA_WRITE",
|
||||||
# "exempted_members": [
|
# "exempted_members": [
|
||||||
# "user:bar@gmail.com"
|
# "user:aliya@example.com"
|
||||||
# ]
|
# ]
|
||||||
# `
|
# `
|
||||||
# ]
|
# ]
|
||||||
# `
|
# `
|
||||||
# ]
|
# ]
|
||||||
# `
|
# `
|
||||||
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
||||||
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
|
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
||||||
# bar@gmail.com from DATA_WRITE logging.
|
# aliya@example.com from DATA_WRITE logging.
|
||||||
class AuditConfig
|
class AuditConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ module Google
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_READ",
|
# "log_type": "DATA_READ",
|
||||||
# "exempted_members": [
|
# "exempted_members": [
|
||||||
# "user:foo@gmail.com"
|
# "user:jose@example.com"
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
|
@ -111,7 +111,7 @@ module Google
|
||||||
# ]
|
# ]
|
||||||
# `
|
# `
|
||||||
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
||||||
# foo@gmail.com from DATA_READ logging.
|
# jose@example.com from DATA_READ logging.
|
||||||
class AuditLogConfig
|
class AuditLogConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -157,11 +157,28 @@ module Google
|
||||||
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||||
# who is authenticated with a Google account or a service account.
|
# who is authenticated with a Google account or a service account.
|
||||||
# * `user:`emailid``: An email address that represents a specific Google
|
# * `user:`emailid``: An email address that represents a specific Google
|
||||||
# account. For example, `alice@gmail.com` .
|
# account. For example, `alice@example.com` .
|
||||||
# * `serviceAccount:`emailid``: An email address that represents a service
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
||||||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||||
# * `group:`emailid``: An email address that represents a Google group.
|
# * `group:`emailid``: An email address that represents a Google group.
|
||||||
# For example, `admins@example.com`.
|
# For example, `admins@example.com`.
|
||||||
|
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
|
# identifier) representing a user that has been recently deleted. For
|
||||||
|
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
||||||
|
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
||||||
|
# retains the role in the binding.
|
||||||
|
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
||||||
|
# unique identifier) representing a service account that has been recently
|
||||||
|
# deleted. For example,
|
||||||
|
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||||
|
# If the service account is undeleted, this value reverts to
|
||||||
|
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
||||||
|
# role in the binding.
|
||||||
|
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
|
# identifier) representing a Google group that has been recently
|
||||||
|
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||||
|
# the group is recovered, this value reverts to `group:`emailid`` and the
|
||||||
|
# recovered group retains the role in the binding.
|
||||||
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
||||||
# users of that domain. For example, `google.com` or `example.com`.
|
# users of that domain. For example, `google.com` or `example.com`.
|
||||||
# Corresponds to the JSON property `members`
|
# Corresponds to the JSON property `members`
|
||||||
|
@ -380,43 +397,62 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
# specify access control policies for Cloud Platform resources.
|
# controls for Google Cloud resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
||||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
||||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||||
# defined by IAM.
|
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||||
# **JSON Example**
|
# custom role.
|
||||||
|
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||||
|
# expression that allows access to a resource only if the expression evaluates
|
||||||
|
# to `true`. A condition can add constraints based on attributes of the
|
||||||
|
# request, the resource, or both.
|
||||||
|
# **JSON example:**
|
||||||
# `
|
# `
|
||||||
# "bindings": [
|
# "bindings": [
|
||||||
# `
|
# `
|
||||||
# "role": "roles/owner",
|
# "role": "roles/resourcemanager.organizationAdmin",
|
||||||
# "members": [
|
# "members": [
|
||||||
# "user:mike@example.com",
|
# "user:mike@example.com",
|
||||||
# "group:admins@example.com",
|
# "group:admins@example.com",
|
||||||
# "domain:google.com",
|
# "domain:google.com",
|
||||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
# "role": "roles/viewer",
|
# "role": "roles/resourcemanager.organizationViewer",
|
||||||
# "members": ["user:sean@example.com"]
|
# "members": ["user:eve@example.com"],
|
||||||
|
# "condition": `
|
||||||
|
# "title": "expirable access",
|
||||||
|
# "description": "Does not grant access after Sep 2020",
|
||||||
|
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||||
|
# ",
|
||||||
# `
|
# `
|
||||||
# ]
|
|
||||||
# `
|
# `
|
||||||
# **YAML Example**
|
# ],
|
||||||
|
# "etag": "BwWWja0YfJA=",
|
||||||
|
# "version": 3
|
||||||
|
# `
|
||||||
|
# **YAML example:**
|
||||||
# bindings:
|
# bindings:
|
||||||
# - members:
|
# - members:
|
||||||
# - user:mike@example.com
|
# - user:mike@example.com
|
||||||
# - group:admins@example.com
|
# - group:admins@example.com
|
||||||
# - domain:google.com
|
# - domain:google.com
|
||||||
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
||||||
# role: roles/owner
|
# role: roles/resourcemanager.organizationAdmin
|
||||||
# - members:
|
# - members:
|
||||||
# - user:sean@example.com
|
# - user:eve@example.com
|
||||||
# role: roles/viewer
|
# role: roles/resourcemanager.organizationViewer
|
||||||
|
# condition:
|
||||||
|
# title: expirable access
|
||||||
|
# description: Does not grant access after Sep 2020
|
||||||
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||||
|
# - etag: BwWWja0YfJA=
|
||||||
|
# - version: 3
|
||||||
# For a description of IAM and its features, see the
|
# For a description of IAM and its features, see the
|
||||||
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
||||||
class Policy
|
class Policy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -425,8 +461,9 @@ module Google
|
||||||
# @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
|
# @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
|
||||||
attr_accessor :audit_configs
|
attr_accessor :audit_configs
|
||||||
|
|
||||||
# Associates a list of `members` to a `role`.
|
# Associates a list of `members` to a `role`. Optionally, may specify a
|
||||||
# `bindings` with no members will result in an error.
|
# `condition` that determines how and when the `bindings` are applied. Each
|
||||||
|
# of the `bindings` must contain at least one member.
|
||||||
# Corresponds to the JSON property `bindings`
|
# Corresponds to the JSON property `bindings`
|
||||||
# @return [Array<Google::Apis::SourcerepoV1::Binding>]
|
# @return [Array<Google::Apis::SourcerepoV1::Binding>]
|
||||||
attr_accessor :bindings
|
attr_accessor :bindings
|
||||||
|
@ -438,14 +475,31 @@ module Google
|
||||||
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
||||||
# systems are expected to put that etag in the request to `setIamPolicy` to
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
||||||
# ensure that their change will be applied to the same version of the policy.
|
# ensure that their change will be applied to the same version of the policy.
|
||||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
||||||
# policy is overwritten blindly.
|
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
||||||
|
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
||||||
|
# the conditions in the version `3` policy are lost.
|
||||||
# Corresponds to the JSON property `etag`
|
# Corresponds to the JSON property `etag`
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
# Deprecated.
|
# Specifies the format of the policy.
|
||||||
|
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
||||||
|
# are rejected.
|
||||||
|
# Any operation that affects conditional role bindings must specify version
|
||||||
|
# `3`. This requirement applies to the following operations:
|
||||||
|
# * Getting a policy that includes a conditional role binding
|
||||||
|
# * Adding a conditional role binding to a policy
|
||||||
|
# * Changing a conditional role binding in a policy
|
||||||
|
# * Removing any role binding, with or without a condition, from a policy
|
||||||
|
# that includes conditions
|
||||||
|
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
||||||
|
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
||||||
|
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
||||||
|
# the conditions in the version `3` policy are lost.
|
||||||
|
# If a policy does not include any conditions, operations on that policy may
|
||||||
|
# specify any valid version or leave the field unset.
|
||||||
# Corresponds to the JSON property `version`
|
# Corresponds to the JSON property `version`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :version
|
attr_accessor :version
|
||||||
|
@ -586,43 +640,62 @@ module Google
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
# specify access control policies for Cloud Platform resources.
|
# controls for Google Cloud resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
||||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
||||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
||||||
# defined by IAM.
|
# permissions; each `role` can be an IAM predefined role or a user-created
|
||||||
# **JSON Example**
|
# custom role.
|
||||||
|
# Optionally, a `binding` can specify a `condition`, which is a logical
|
||||||
|
# expression that allows access to a resource only if the expression evaluates
|
||||||
|
# to `true`. A condition can add constraints based on attributes of the
|
||||||
|
# request, the resource, or both.
|
||||||
|
# **JSON example:**
|
||||||
# `
|
# `
|
||||||
# "bindings": [
|
# "bindings": [
|
||||||
# `
|
# `
|
||||||
# "role": "roles/owner",
|
# "role": "roles/resourcemanager.organizationAdmin",
|
||||||
# "members": [
|
# "members": [
|
||||||
# "user:mike@example.com",
|
# "user:mike@example.com",
|
||||||
# "group:admins@example.com",
|
# "group:admins@example.com",
|
||||||
# "domain:google.com",
|
# "domain:google.com",
|
||||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
# "role": "roles/viewer",
|
# "role": "roles/resourcemanager.organizationViewer",
|
||||||
# "members": ["user:sean@example.com"]
|
# "members": ["user:eve@example.com"],
|
||||||
|
# "condition": `
|
||||||
|
# "title": "expirable access",
|
||||||
|
# "description": "Does not grant access after Sep 2020",
|
||||||
|
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||||
|
# ",
|
||||||
# `
|
# `
|
||||||
# ]
|
|
||||||
# `
|
# `
|
||||||
# **YAML Example**
|
# ],
|
||||||
|
# "etag": "BwWWja0YfJA=",
|
||||||
|
# "version": 3
|
||||||
|
# `
|
||||||
|
# **YAML example:**
|
||||||
# bindings:
|
# bindings:
|
||||||
# - members:
|
# - members:
|
||||||
# - user:mike@example.com
|
# - user:mike@example.com
|
||||||
# - group:admins@example.com
|
# - group:admins@example.com
|
||||||
# - domain:google.com
|
# - domain:google.com
|
||||||
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
||||||
# role: roles/owner
|
# role: roles/resourcemanager.organizationAdmin
|
||||||
# - members:
|
# - members:
|
||||||
# - user:sean@example.com
|
# - user:eve@example.com
|
||||||
# role: roles/viewer
|
# role: roles/resourcemanager.organizationViewer
|
||||||
|
# condition:
|
||||||
|
# title: expirable access
|
||||||
|
# description: Does not grant access after Sep 2020
|
||||||
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
||||||
|
# - etag: BwWWja0YfJA=
|
||||||
|
# - version: 3
|
||||||
# For a description of IAM and its features, see the
|
# For a description of IAM and its features, see the
|
||||||
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
||||||
# Corresponds to the JSON property `policy`
|
# Corresponds to the JSON property `policy`
|
||||||
# @return [Google::Apis::SourcerepoV1::Policy]
|
# @return [Google::Apis::SourcerepoV1::Policy]
|
||||||
attr_accessor :policy
|
attr_accessor :policy
|
||||||
|
|
|
@ -216,6 +216,13 @@ module Google
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being requested.
|
# REQUIRED: The resource for which the policy is being requested.
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# See the operation documentation for the appropriate value for this field.
|
||||||
|
# @param [Fixnum] options_requested_policy_version
|
||||||
|
# Optional. The policy format version to be returned.
|
||||||
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||||
|
# rejected.
|
||||||
|
# Requests for policies with any conditional bindings must specify version 3.
|
||||||
|
# Policies without any conditional bindings may specify any valid value or
|
||||||
|
# leave the field unset.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -233,11 +240,12 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_project_repo_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project_repo_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||||
command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
|
command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
|
||||||
command.response_class = Google::Apis::SourcerepoV1::Policy
|
command.response_class = Google::Apis::SourcerepoV1::Policy
|
||||||
command.params['resource'] = resource unless resource.nil?
|
command.params['resource'] = resource unless resource.nil?
|
||||||
|
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
|
Loading…
Reference in New Issue