Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="cloudidentity_v1beta1.html">Cloud Identity API</a> . <a href="cloudidentity_v1beta1.groups.html">groups</a> . <a href="cloudidentity_v1beta1.groups.memberships.html">memberships</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 78 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Creates a `Membership`.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 82 | <p class="firstline">Deletes a `Membership`.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 85 | <p class="firstline">Retrieves a `Membership`.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 86 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 87 | <code><a href="#list">list(parent, pageToken=None, x__xgafv=None, pageSize=None, view=None)</a></code></p> |
| 88 | <p class="firstline">Lists the `Membership`s within a `Group`.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 89 | <p class="toc_element"> |
| 90 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 91 | <p class="firstline">Retrieves the next page of results.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#lookup">lookup(parent, memberKey_namespace=None, memberKey_id=None, x__xgafv=None)</a></code></p> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 94 | <p class="firstline">Looks up the [resource</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#modifyMembershipRoles">modifyMembershipRoles(name, body=None, x__xgafv=None)</a></code></p> |
| 97 | <p class="firstline">Modifies the `MembershipRole`s of a `Membership`.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 100 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 101 | <pre>Creates a `Membership`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 102 | |
| 103 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 104 | parent: string, Required. The parent `Group` resource under which to create the `Membership`. |
| 105 | |
| 106 | Must be of the form `groups/{group_id}`. (required) |
| 107 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 108 | The object takes the form of: |
| 109 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 110 | { # A membership within the Cloud Identity Groups API. |
| 111 | # |
| 112 | # A `Membership` defines a relationship between a `Group` and an entity |
| 113 | # belonging to that `Group`, referred to as a "member". |
| 114 | "updateTime": "A String", # Output only. The time when the `Membership` was last updated. |
| 115 | "name": "A String", # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 116 | # the `Membership`. |
| 117 | # |
| 118 | # Shall be of the form `groups/{group_id}/memberships/{membership_id}`. |
| 119 | "roles": [ # The `MembershipRole`s that apply to the `Membership`. |
| 120 | # |
| 121 | # If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. |
| 122 | # |
| 123 | # Must not contain duplicate `MembershipRole`s with the same `name`. |
| 124 | { # A membership role within the Cloud Identity Groups API. |
| 125 | # |
| 126 | # A `MembershipRole` defines the privileges granted to a `Membership`. |
| 127 | "name": "A String", # The name of the `MembershipRole`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 128 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 129 | # Must be one of `OWNER`, `MANAGER`, `MEMBER`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 130 | }, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 131 | ], |
| 132 | "memberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Immutable. The `EntityKey` of the member. |
| 133 | # |
| 134 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 135 | # MembershipsService.CreateMembership but not both; both shall be set |
| 136 | # when returned. |
| 137 | # |
| 138 | # An entity can represent either a group with an optional `namespace` or a user |
| 139 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 140 | # unique; however, the same `id` can be used with different `namespace`s. |
| 141 | "namespace": "A String", # The namespace in which the entity exists. |
| 142 | # |
| 143 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 144 | # as a Google user or a Google Group. |
| 145 | # |
| 146 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 147 | # The namespace must correspond to an identity source created in Admin |
| 148 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 149 | "id": "A String", # The ID of the entity. |
| 150 | # |
| 151 | # For Google-managed entities, the `id` must be the email address of an |
| 152 | # existing group or user. |
| 153 | # |
| 154 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 155 | # to the Identity Source's requirements. |
| 156 | # |
| 157 | # Must be unique within a `namespace`. |
| 158 | }, |
| 159 | "preferredMemberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Required. Immutable. The `EntityKey` of the member. |
| 160 | # |
| 161 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 162 | # MembershipsService.CreateMembership but not both; both shall be set |
| 163 | # when returned. |
| 164 | # |
| 165 | # An entity can represent either a group with an optional `namespace` or a user |
| 166 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 167 | # unique; however, the same `id` can be used with different `namespace`s. |
| 168 | "namespace": "A String", # The namespace in which the entity exists. |
| 169 | # |
| 170 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 171 | # as a Google user or a Google Group. |
| 172 | # |
| 173 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 174 | # The namespace must correspond to an identity source created in Admin |
| 175 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 176 | "id": "A String", # The ID of the entity. |
| 177 | # |
| 178 | # For Google-managed entities, the `id` must be the email address of an |
| 179 | # existing group or user. |
| 180 | # |
| 181 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 182 | # to the Identity Source's requirements. |
| 183 | # |
| 184 | # Must be unique within a `namespace`. |
| 185 | }, |
| 186 | "createTime": "A String", # Output only. The time when the `Membership` was created. |
| 187 | } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 188 | |
| 189 | x__xgafv: string, V1 error format. |
| 190 | Allowed values |
| 191 | 1 - v1 error format |
| 192 | 2 - v2 error format |
| 193 | |
| 194 | Returns: |
| 195 | An object of the form: |
| 196 | |
| 197 | { # This resource represents a long-running operation that is the result of a |
| 198 | # network API call. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 199 | "response": { # The normal response of the operation in case of success. If the original |
| 200 | # method returns no data on success, such as `Delete`, the response is |
| 201 | # `google.protobuf.Empty`. If the original method is standard |
| 202 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 203 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 204 | # is the original method name. For example, if the original method name |
| 205 | # is `TakeSnapshot()`, the inferred response type is |
| 206 | # `TakeSnapshotResponse`. |
| 207 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 208 | }, |
| 209 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 210 | # contains progress information and common metadata such as create time. |
| 211 | # Some services might not provide such metadata. Any method that returns a |
| 212 | # long-running operation should document the metadata type, if any. |
| 213 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 214 | }, |
| 215 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 216 | # If `true`, the operation is completed, and either `error` or `response` is |
| 217 | # available. |
| 218 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 219 | # originally returns it. If you use the default HTTP mapping, the |
| 220 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 221 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 222 | # different programming environments, including REST APIs and RPC APIs. It is |
| 223 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 224 | # three pieces of data: error code, error message, and error details. |
| 225 | # |
| 226 | # You can find out more about this error model and how to work with it in the |
| 227 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 228 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 229 | # user-facing error message should be localized and sent in the |
| 230 | # google.rpc.Status.details field, or localized by the client. |
| 231 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 232 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 233 | # message types for APIs to use. |
| 234 | { |
| 235 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 236 | }, |
| 237 | ], |
| 238 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 239 | }</pre> |
| 240 | </div> |
| 241 | |
| 242 | <div class="method"> |
| 243 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 244 | <pre>Deletes a `Membership`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 245 | |
| 246 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 247 | name: string, Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 248 | the `Membership` to delete. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 249 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 250 | Must be of the form `groups/{group_id}/memberships/{membership_id}`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 251 | x__xgafv: string, V1 error format. |
| 252 | Allowed values |
| 253 | 1 - v1 error format |
| 254 | 2 - v2 error format |
| 255 | |
| 256 | Returns: |
| 257 | An object of the form: |
| 258 | |
| 259 | { # This resource represents a long-running operation that is the result of a |
| 260 | # network API call. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 261 | "response": { # The normal response of the operation in case of success. If the original |
| 262 | # method returns no data on success, such as `Delete`, the response is |
| 263 | # `google.protobuf.Empty`. If the original method is standard |
| 264 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 265 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 266 | # is the original method name. For example, if the original method name |
| 267 | # is `TakeSnapshot()`, the inferred response type is |
| 268 | # `TakeSnapshotResponse`. |
| 269 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 270 | }, |
| 271 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 272 | # contains progress information and common metadata such as create time. |
| 273 | # Some services might not provide such metadata. Any method that returns a |
| 274 | # long-running operation should document the metadata type, if any. |
| 275 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 276 | }, |
| 277 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 278 | # If `true`, the operation is completed, and either `error` or `response` is |
| 279 | # available. |
| 280 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 281 | # originally returns it. If you use the default HTTP mapping, the |
| 282 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 283 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 284 | # different programming environments, including REST APIs and RPC APIs. It is |
| 285 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 286 | # three pieces of data: error code, error message, and error details. |
| 287 | # |
| 288 | # You can find out more about this error model and how to work with it in the |
| 289 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 290 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 291 | # user-facing error message should be localized and sent in the |
| 292 | # google.rpc.Status.details field, or localized by the client. |
| 293 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 294 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 295 | # message types for APIs to use. |
| 296 | { |
| 297 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 298 | }, |
| 299 | ], |
| 300 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 301 | }</pre> |
| 302 | </div> |
| 303 | |
| 304 | <div class="method"> |
| 305 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 306 | <pre>Retrieves a `Membership`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 307 | |
| 308 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 309 | name: string, Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 310 | the `Membership` to retrieve. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 311 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 312 | Must be of the form `groups/{group_id}/memberships/{membership_id}`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 313 | x__xgafv: string, V1 error format. |
| 314 | Allowed values |
| 315 | 1 - v1 error format |
| 316 | 2 - v2 error format |
| 317 | |
| 318 | Returns: |
| 319 | An object of the form: |
| 320 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 321 | { # A membership within the Cloud Identity Groups API. |
| 322 | # |
| 323 | # A `Membership` defines a relationship between a `Group` and an entity |
| 324 | # belonging to that `Group`, referred to as a "member". |
| 325 | "updateTime": "A String", # Output only. The time when the `Membership` was last updated. |
| 326 | "name": "A String", # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 327 | # the `Membership`. |
| 328 | # |
| 329 | # Shall be of the form `groups/{group_id}/memberships/{membership_id}`. |
| 330 | "roles": [ # The `MembershipRole`s that apply to the `Membership`. |
| 331 | # |
| 332 | # If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. |
| 333 | # |
| 334 | # Must not contain duplicate `MembershipRole`s with the same `name`. |
| 335 | { # A membership role within the Cloud Identity Groups API. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 336 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 337 | # A `MembershipRole` defines the privileges granted to a `Membership`. |
| 338 | "name": "A String", # The name of the `MembershipRole`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 339 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 340 | # Must be one of `OWNER`, `MANAGER`, `MEMBER`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 341 | }, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 342 | ], |
| 343 | "memberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Immutable. The `EntityKey` of the member. |
| 344 | # |
| 345 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 346 | # MembershipsService.CreateMembership but not both; both shall be set |
| 347 | # when returned. |
| 348 | # |
| 349 | # An entity can represent either a group with an optional `namespace` or a user |
| 350 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 351 | # unique; however, the same `id` can be used with different `namespace`s. |
| 352 | "namespace": "A String", # The namespace in which the entity exists. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 353 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 354 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 355 | # as a Google user or a Google Group. |
| 356 | # |
| 357 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 358 | # The namespace must correspond to an identity source created in Admin |
| 359 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 360 | "id": "A String", # The ID of the entity. |
| 361 | # |
| 362 | # For Google-managed entities, the `id` must be the email address of an |
| 363 | # existing group or user. |
| 364 | # |
| 365 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 366 | # to the Identity Source's requirements. |
| 367 | # |
| 368 | # Must be unique within a `namespace`. |
| 369 | }, |
| 370 | "preferredMemberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Required. Immutable. The `EntityKey` of the member. |
| 371 | # |
| 372 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 373 | # MembershipsService.CreateMembership but not both; both shall be set |
| 374 | # when returned. |
| 375 | # |
| 376 | # An entity can represent either a group with an optional `namespace` or a user |
| 377 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 378 | # unique; however, the same `id` can be used with different `namespace`s. |
| 379 | "namespace": "A String", # The namespace in which the entity exists. |
| 380 | # |
| 381 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 382 | # as a Google user or a Google Group. |
| 383 | # |
| 384 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 385 | # The namespace must correspond to an identity source created in Admin |
| 386 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 387 | "id": "A String", # The ID of the entity. |
| 388 | # |
| 389 | # For Google-managed entities, the `id` must be the email address of an |
| 390 | # existing group or user. |
| 391 | # |
| 392 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 393 | # to the Identity Source's requirements. |
| 394 | # |
| 395 | # Must be unique within a `namespace`. |
| 396 | }, |
| 397 | "createTime": "A String", # Output only. The time when the `Membership` was created. |
| 398 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 399 | </div> |
| 400 | |
| 401 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 402 | <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None, pageSize=None, view=None)</code> |
| 403 | <pre>Lists the `Membership`s within a `Group`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 404 | |
| 405 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 406 | parent: string, Required. The parent `Group` resource under which to lookup the `Membership` name. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 407 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 408 | Must be of the form `groups/{group_id}`. (required) |
| 409 | pageToken: string, The `next_page_token` value returned from a previous search request, if |
| 410 | any. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 411 | x__xgafv: string, V1 error format. |
| 412 | Allowed values |
| 413 | 1 - v1 error format |
| 414 | 2 - v2 error format |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 415 | pageSize: integer, The maximum number of results to return. |
| 416 | |
| 417 | Note that the number of results returned may be less than this value even |
| 418 | if there are more available results. To fetch all results, clients must |
| 419 | continue calling this method repeatedly until the response no longer |
| 420 | contains a `next_page_token`. |
| 421 | |
| 422 | If unspecified, defaults to 200 for `GroupView.BASIC` and to 50 for |
| 423 | `GroupView.FULL`. |
| 424 | |
| 425 | Must not be greater than 1000 for `GroupView.BASIC` or 500 for |
| 426 | `GroupView.FULL`. |
| 427 | view: string, The level of detail to be returned. |
| 428 | |
| 429 | If unspecified, defaults to `MembershipView.BASIC`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 430 | |
| 431 | Returns: |
| 432 | An object of the form: |
| 433 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 434 | { # The response message for MembershipsService.ListMemberships. |
| 435 | "nextPageToken": "A String", # A continuation token to retrieve the next page of results, or empty if |
| 436 | # there are no more results available. |
| 437 | "memberships": [ # The `Membership`s under the specified `parent`. |
| 438 | { # A membership within the Cloud Identity Groups API. |
| 439 | # |
| 440 | # A `Membership` defines a relationship between a `Group` and an entity |
| 441 | # belonging to that `Group`, referred to as a "member". |
| 442 | "updateTime": "A String", # Output only. The time when the `Membership` was last updated. |
| 443 | "name": "A String", # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 444 | # the `Membership`. |
| 445 | # |
| 446 | # Shall be of the form `groups/{group_id}/memberships/{membership_id}`. |
| 447 | "roles": [ # The `MembershipRole`s that apply to the `Membership`. |
| 448 | # |
| 449 | # If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. |
| 450 | # |
| 451 | # Must not contain duplicate `MembershipRole`s with the same `name`. |
| 452 | { # A membership role within the Cloud Identity Groups API. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 453 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 454 | # A `MembershipRole` defines the privileges granted to a `Membership`. |
| 455 | "name": "A String", # The name of the `MembershipRole`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 456 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 457 | # Must be one of `OWNER`, `MANAGER`, `MEMBER`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 458 | }, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 459 | ], |
| 460 | "memberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Immutable. The `EntityKey` of the member. |
| 461 | # |
| 462 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 463 | # MembershipsService.CreateMembership but not both; both shall be set |
| 464 | # when returned. |
| 465 | # |
| 466 | # An entity can represent either a group with an optional `namespace` or a user |
| 467 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 468 | # unique; however, the same `id` can be used with different `namespace`s. |
| 469 | "namespace": "A String", # The namespace in which the entity exists. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 470 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 471 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 472 | # as a Google user or a Google Group. |
| 473 | # |
| 474 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 475 | # The namespace must correspond to an identity source created in Admin |
| 476 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 477 | "id": "A String", # The ID of the entity. |
| 478 | # |
| 479 | # For Google-managed entities, the `id` must be the email address of an |
| 480 | # existing group or user. |
| 481 | # |
| 482 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 483 | # to the Identity Source's requirements. |
| 484 | # |
| 485 | # Must be unique within a `namespace`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 486 | }, |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 487 | "preferredMemberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Required. Immutable. The `EntityKey` of the member. |
| 488 | # |
| 489 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 490 | # MembershipsService.CreateMembership but not both; both shall be set |
| 491 | # when returned. |
| 492 | # |
| 493 | # An entity can represent either a group with an optional `namespace` or a user |
| 494 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 495 | # unique; however, the same `id` can be used with different `namespace`s. |
| 496 | "namespace": "A String", # The namespace in which the entity exists. |
| 497 | # |
| 498 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 499 | # as a Google user or a Google Group. |
| 500 | # |
| 501 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 502 | # The namespace must correspond to an identity source created in Admin |
| 503 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 504 | "id": "A String", # The ID of the entity. |
| 505 | # |
| 506 | # For Google-managed entities, the `id` must be the email address of an |
| 507 | # existing group or user. |
| 508 | # |
| 509 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 510 | # to the Identity Source's requirements. |
| 511 | # |
| 512 | # Must be unique within a `namespace`. |
| 513 | }, |
| 514 | "createTime": "A String", # Output only. The time when the `Membership` was created. |
| 515 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 516 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 517 | }</pre> |
| 518 | </div> |
| 519 | |
| 520 | <div class="method"> |
| 521 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 522 | <pre>Retrieves the next page of results. |
| 523 | |
| 524 | Args: |
| 525 | previous_request: The request for the previous page. (required) |
| 526 | previous_response: The response from the request for the previous page. (required) |
| 527 | |
| 528 | Returns: |
| 529 | A request object that you can call 'execute()' on to request the next |
| 530 | page. Returns None if there are no more items in the collection. |
| 531 | </pre> |
| 532 | </div> |
| 533 | |
| 534 | <div class="method"> |
| 535 | <code class="details" id="lookup">lookup(parent, memberKey_namespace=None, memberKey_id=None, x__xgafv=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 536 | <pre>Looks up the [resource |
| 537 | name](https://cloud.google.com/apis/design/resource_names) of a |
| 538 | `Membership` by its `EntityKey`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 539 | |
| 540 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 541 | parent: string, Required. The parent `Group` resource under which to lookup the `Membership` name. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 542 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 543 | Must be of the form `groups/{group_id}`. (required) |
| 544 | memberKey_namespace: string, The namespace in which the entity exists. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 545 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 546 | If not specified, the `EntityKey` represents a Google-managed entity such |
| 547 | as a Google user or a Google Group. |
| 548 | |
| 549 | If specified, the `EntityKey` represents an external-identity-mapped group. |
| 550 | The namespace must correspond to an identity source created in Admin |
| 551 | Console and must be in the form of `identitysources/{identity_source_id}. |
| 552 | memberKey_id: string, The ID of the entity. |
| 553 | |
| 554 | For Google-managed entities, the `id` must be the email address of an |
| 555 | existing group or user. |
| 556 | |
| 557 | For external-identity-mapped entities, the `id` must be a string conforming |
| 558 | to the Identity Source's requirements. |
| 559 | |
| 560 | Must be unique within a `namespace`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 561 | x__xgafv: string, V1 error format. |
| 562 | Allowed values |
| 563 | 1 - v1 error format |
| 564 | 2 - v2 error format |
| 565 | |
| 566 | Returns: |
| 567 | An object of the form: |
| 568 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 569 | { # The response message for MembershipsService.LookupMembershipName. |
| 570 | "name": "A String", # The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 571 | # the looked-up `Membership`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 572 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame^] | 573 | # Must be of the form `groups/{group_id}/memberships/{membership_id}`. |
| 574 | }</pre> |
| 575 | </div> |
| 576 | |
| 577 | <div class="method"> |
| 578 | <code class="details" id="modifyMembershipRoles">modifyMembershipRoles(name, body=None, x__xgafv=None)</code> |
| 579 | <pre>Modifies the `MembershipRole`s of a `Membership`. |
| 580 | |
| 581 | Args: |
| 582 | name: string, Required. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 583 | the `Membership` whose roles are to be modified. |
| 584 | |
| 585 | Must be of the form `groups/{group_id}/memberships/{membership_id}`. (required) |
| 586 | body: object, The request body. |
| 587 | The object takes the form of: |
| 588 | |
| 589 | { # The request message for MembershipsService.ModifyMembershipRoles. |
| 590 | "removeRoles": [ # The `name`s of the `MembershipRole`s to be removed. |
| 591 | # |
| 592 | # Adding or removing roles in the same request as updating roles is not |
| 593 | # supported. |
| 594 | # |
| 595 | # It is not possible to remove the `MEMBER` `MembershipRole`. If you wish to |
| 596 | # delete a `Membership`, call MembershipsService.DeleteMembership |
| 597 | # instead. |
| 598 | # |
| 599 | # Must not contain `MEMBER`. Must not be set if `update_roles_params` is set. |
| 600 | "A String", |
| 601 | ], |
| 602 | "updateRolesParams": [ # The `MembershipRole`s to be updated. |
| 603 | # |
| 604 | # Updating roles in the same request as adding or removing roles is not |
| 605 | # supported. |
| 606 | # |
| 607 | # Must not be set if either `add_roles` or `remove_roles` is set. |
| 608 | { # The details of an update to a `MembershipRole`. |
| 609 | "fieldMask": "A String", # The fully-qualified names of fields to update. |
| 610 | # |
| 611 | # May only contain the field `expiry_detail`. |
| 612 | "membershipRole": { # A membership role within the Cloud Identity Groups API. # The `MembershipRole`s to be updated. |
| 613 | # |
| 614 | # Only `MEMBER` `MembershipRoles` can currently be updated. |
| 615 | # |
| 616 | # May only contain a `MembershipRole` with `name` `MEMBER`. |
| 617 | # |
| 618 | # A `MembershipRole` defines the privileges granted to a `Membership`. |
| 619 | "name": "A String", # The name of the `MembershipRole`. |
| 620 | # |
| 621 | # Must be one of `OWNER`, `MANAGER`, `MEMBER`. |
| 622 | }, |
| 623 | }, |
| 624 | ], |
| 625 | "addRoles": [ # The `MembershipRole`s to be added. |
| 626 | # |
| 627 | # Adding or removing roles in the same request as updating roles is not |
| 628 | # supported. |
| 629 | # |
| 630 | # Must not be set if `update_roles_params` is set. |
| 631 | { # A membership role within the Cloud Identity Groups API. |
| 632 | # |
| 633 | # A `MembershipRole` defines the privileges granted to a `Membership`. |
| 634 | "name": "A String", # The name of the `MembershipRole`. |
| 635 | # |
| 636 | # Must be one of `OWNER`, `MANAGER`, `MEMBER`. |
| 637 | }, |
| 638 | ], |
| 639 | } |
| 640 | |
| 641 | x__xgafv: string, V1 error format. |
| 642 | Allowed values |
| 643 | 1 - v1 error format |
| 644 | 2 - v2 error format |
| 645 | |
| 646 | Returns: |
| 647 | An object of the form: |
| 648 | |
| 649 | { # The response message for MembershipsService.ModifyMembershipRoles. |
| 650 | "membership": { # A membership within the Cloud Identity Groups API. # The `Membership` resource after modifying its `MembershipRole`s. |
| 651 | # |
| 652 | # A `Membership` defines a relationship between a `Group` and an entity |
| 653 | # belonging to that `Group`, referred to as a "member". |
| 654 | "updateTime": "A String", # Output only. The time when the `Membership` was last updated. |
| 655 | "name": "A String", # Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of |
| 656 | # the `Membership`. |
| 657 | # |
| 658 | # Shall be of the form `groups/{group_id}/memberships/{membership_id}`. |
| 659 | "roles": [ # The `MembershipRole`s that apply to the `Membership`. |
| 660 | # |
| 661 | # If unspecified, defaults to a single `MembershipRole` with `name` `MEMBER`. |
| 662 | # |
| 663 | # Must not contain duplicate `MembershipRole`s with the same `name`. |
| 664 | { # A membership role within the Cloud Identity Groups API. |
| 665 | # |
| 666 | # A `MembershipRole` defines the privileges granted to a `Membership`. |
| 667 | "name": "A String", # The name of the `MembershipRole`. |
| 668 | # |
| 669 | # Must be one of `OWNER`, `MANAGER`, `MEMBER`. |
| 670 | }, |
| 671 | ], |
| 672 | "memberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Immutable. The `EntityKey` of the member. |
| 673 | # |
| 674 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 675 | # MembershipsService.CreateMembership but not both; both shall be set |
| 676 | # when returned. |
| 677 | # |
| 678 | # An entity can represent either a group with an optional `namespace` or a user |
| 679 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 680 | # unique; however, the same `id` can be used with different `namespace`s. |
| 681 | "namespace": "A String", # The namespace in which the entity exists. |
| 682 | # |
| 683 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 684 | # as a Google user or a Google Group. |
| 685 | # |
| 686 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 687 | # The namespace must correspond to an identity source created in Admin |
| 688 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 689 | "id": "A String", # The ID of the entity. |
| 690 | # |
| 691 | # For Google-managed entities, the `id` must be the email address of an |
| 692 | # existing group or user. |
| 693 | # |
| 694 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 695 | # to the Identity Source's requirements. |
| 696 | # |
| 697 | # Must be unique within a `namespace`. |
| 698 | }, |
| 699 | "preferredMemberKey": { # A unique identifier for an entity in the Cloud Identity Groups API. # Required. Immutable. The `EntityKey` of the member. |
| 700 | # |
| 701 | # Either `member_key` or `preferred_member_key` must be set when calling |
| 702 | # MembershipsService.CreateMembership but not both; both shall be set |
| 703 | # when returned. |
| 704 | # |
| 705 | # An entity can represent either a group with an optional `namespace` or a user |
| 706 | # without a `namespace`. The combination of `id` and `namespace` must be |
| 707 | # unique; however, the same `id` can be used with different `namespace`s. |
| 708 | "namespace": "A String", # The namespace in which the entity exists. |
| 709 | # |
| 710 | # If not specified, the `EntityKey` represents a Google-managed entity such |
| 711 | # as a Google user or a Google Group. |
| 712 | # |
| 713 | # If specified, the `EntityKey` represents an external-identity-mapped group. |
| 714 | # The namespace must correspond to an identity source created in Admin |
| 715 | # Console and must be in the form of `identitysources/{identity_source_id}. |
| 716 | "id": "A String", # The ID of the entity. |
| 717 | # |
| 718 | # For Google-managed entities, the `id` must be the email address of an |
| 719 | # existing group or user. |
| 720 | # |
| 721 | # For external-identity-mapped entities, the `id` must be a string conforming |
| 722 | # to the Identity Source's requirements. |
| 723 | # |
| 724 | # Must be unique within a `namespace`. |
| 725 | }, |
| 726 | "createTime": "A String", # Output only. The time when the `Membership` was created. |
| 727 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 728 | }</pre> |
| 729 | </div> |
| 730 | |
| 731 | </body></html> |