
    ^                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)zBGenerated client library for cloudresourcemanager version v1beta1.    )absolute_import)base_api)%cloudresourcemanager_v1beta1_messagesc                      ^  \ rS rSrSr\rSrSrSr	SS/r
SrS	rS
rSrS rSrSr     SU 4S jjr " S S\R(                  5      r " S S\R(                  5      rSrU =r$ )CloudresourcemanagerV1beta1
   zJGenerated client library for service cloudresourcemanager version v1beta1.z,https://cloudresourcemanager.googleapis.com/z1https://cloudresourcemanager.mtls.googleapis.com/cloudresourcemanagerz.https://www.googleapis.com/auth/cloud-platformz8https://www.googleapis.com/auth/cloud-platform.read-onlyv1beta1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        g)z)Create a new cloudresourcemanager handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__OrganizationsServiceorganizationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               mlib/googlecloudsdk/generated_clients/apis/cloudresourcemanager/v1beta1/cloudresourcemanager_v1beta1_client.pyr   $CloudresourcemanagerV1beta1.__init__   sf     
C	
%t5'%)3 7+ 6 - 2248D((.DM    c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )0CloudresourcemanagerV1beta1.OrganizationsService-   z-Service class for the organizations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr   clientr!   s     r"   r   9CloudresourcemanagerV1beta1.OrganizationsService.__init__2   s#    '<<dLVTdr$   c                 D    U R                  S5      nU R                  X1US9$ )a  Fetches an Organization resource identified by the specified resource name.

Args:
  request: (CloudresourcemanagerOrganizationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Organization) The response message.
Getglobal_paramsGetMethodConfig
_RunMethodr   requestr1   configs       r"   r/   4CloudresourcemanagerV1beta1.OrganizationsService.Get7   /     ##E*f__
  8 8r$   c                  B    [         R                  " SSS/S/S/SSSSS	S
9
$ )NGETz&cloudresourcemanager.organizations.getorganizationsIdorganizationId'v1beta1/organizations/{organizationsId} +CloudresourcemanagerOrganizationsGetRequestOrganizationF
http_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r$   r"   <lambda>9CloudresourcemanagerV1beta1.OrganizationsService.<lambda>D   s6     6 6:)*&'&'?G)!r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets the access control policy for an Organization resource. May be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, e.g. "organizations/123".

Args:
  request: (CloudresourcemanagerOrganizationsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
GetIamPolicyr0   r2   r5   s       r"   rS   =CloudresourcemanagerV1beta1.OrganizationsService.GetIamPolicyQ   /     ##N3f__
  8 8r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NPOSTz/cloudresourcemanager.organizations.getIamPolicyr<   z4v1beta1/organizations/{organizationsId}:getIamPolicygetIamPolicyRequest4CloudresourcemanagerOrganizationsGetIamPolicyRequestPolicyFrB   rM   rO   r$   r"   rP   rQ   ^   3    )?)?C)*&'L+P#*r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists Organization resources that are visible to the user and satisfy the specified filter. This method returns Organizations in an unspecified order. New Organizations do not necessarily appear at the end of the list.

Args:
  request: (CloudresourcemanagerOrganizationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOrganizationsResponse) The response message.
Listr0   r2   r5   s       r"   r]   5CloudresourcemanagerV1beta1.OrganizationsService.Listk   /     ##F+f__
  8 8r$   c                  @    [         R                  " SS/ / / SQSSSSSS	9
$ )
Nr;   z'cloudresourcemanager.organizations.listfilterpageSize	pageTokenzv1beta1/organizationsr?   ,CloudresourcemanagerOrganizationsListRequestListOrganizationsResponseFrB   rM   rO   r$   r"   rP   rQ   x   s-    !7!7;8-H6"r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Sets the access control policy on an Organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, e.g. "organizations/123".

Args:
  request: (CloudresourcemanagerOrganizationsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
SetIamPolicyr0   r2   r5   s       r"   rh   =CloudresourcemanagerV1beta1.OrganizationsService.SetIamPolicy   rU   r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z/cloudresourcemanager.organizations.setIamPolicyr<   z4v1beta1/organizations/{organizationsId}:setIamPolicysetIamPolicyRequest4CloudresourcemanagerOrganizationsSetIamPolicyRequestrZ   FrB   rM   rO   r$   r"   rP   rQ      r[   r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Returns permissions that a caller has on the specified Organization. The `resource` field should be the organization's resource name, e.g. "organizations/123".

Args:
  request: (CloudresourcemanagerOrganizationsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
TestIamPermissionsr0   r2   r5   s       r"   rn   CCloudresourcemanagerV1beta1.OrganizationsService.TestIamPermissions   0     ##$89f__
  8 8r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z5cloudresourcemanager.organizations.testIamPermissionsr<   z:v1beta1/organizations/{organizationsId}:testIamPermissionstestIamPermissionsRequest:CloudresourcemanagerOrganizationsTestIamPermissionsRequestTestIamPermissionsResponseFrB   rM   rO   r$   r"   rP   rQ      s3    x/E/EI)*&'R1V70r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates an Organization resource identified by the specified resource name.

Args:
  request: (CloudresourcemanagerOrganizationsUpdateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Organization) The response message.
Updater0   r2   r5   s       r"   rv   7CloudresourcemanagerV1beta1.OrganizationsService.Update   /     ##H-f__
  8 8r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NPUTz)cloudresourcemanager.organizations.updater<   r>   organization.CloudresourcemanagerOrganizationsUpdateRequestrA   FrB   rM   rO   r$   r"   rP   rQ      s3    8#9#9=)*&'?$J)$r$   r*   r)   )__name__
__module____qualname____firstlineno____doc___NAMEr   r/   method_configrS   r]   rh   rn   rv   __static_attributes____classcell__r!   s   @r"   r   r&   -   sn    7E
8C8"L8D8"L8($8Fr$   r   c                   4  ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )+CloudresourcemanagerV1beta1.ProjectsService   z(Service class for the projects resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r)   )r   r   r   r   r*   r+   s     r"   r   4CloudresourcemanagerV1beta1.ProjectsService.__init__   s#    '77GOdr$   c                 D    U R                  S5      nU R                  X1US9$ )aI  Creates a Project resource. Initially, the Project resource is owned by its creator exclusively. The creator can later grant permission to others to read or update the Project. Several APIs are activated automatically for the Project, including Google Cloud Storage. The parent is identified by a specified ResourceId, which must include both an ID and a type, such as project, folder, or organization. This method does not associate the new project with a billing account. You can set or update the billing account associated with a project using the [`projects.updateBillingInfo`] (/billing/reference/rest/v1/projects/updateBillingInfo) method.

Args:
  request: (CloudresourcemanagerProjectsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Project) The response message.
Creater0   r2   r5   s       r"   r   2CloudresourcemanagerV1beta1.ProjectsService.Create   rx   r$   c                  >    [         R                  " SS/ / S/SSSSSS	9
$ )
NrW   z$cloudresourcemanager.projects.createuseLegacyStackv1beta1/projectsproject)CloudresourcemanagerProjectsCreateRequestProjectFrB   rM   rO   r$   r"   rP   4CloudresourcemanagerV1beta1.ProjectsService.<lambda>   s0    8#9#98&'(E$$r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the Project if it has a lifecycle state of ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the Project with GetProject, and the Project remains visible to ListProjects. However, you cannot update the project. After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods. The caller must have delete permissions for this Project.

Args:
  request: (CloudresourcemanagerProjectsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter0   r2   r5   s       r"   r   2CloudresourcemanagerV1beta1.ProjectsService.Delete   rx   r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NDELETEz$cloudresourcemanager.projects.delete	projectIdv1beta1/projects/{projectId}r?   )CloudresourcemanagerProjectsDeleteRequestEmptyFrB   rM   rO   r$   r"   rP   r     s1    8#9#98#} M4E"$r$   c                 D    U R                  S5      nU R                  X1US9$ )aW  Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project.

Args:
  request: (CloudresourcemanagerProjectsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Project) The response message.
r/   r0   r2   r5   s       r"   r/   /CloudresourcemanagerV1beta1.ProjectsService.Get  r9   r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
Nr;   z!cloudresourcemanager.projects.getr   r   r?   &CloudresourcemanagerProjectsGetRequestr   FrB   rM   rO   r$   r"   rP   r     s1     6 65#} M4B$!r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project.

Args:
  request: (CloudresourcemanagerProjectsGetAncestryRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GetAncestryResponse) The response message.
GetAncestryr0   r2   r5   s       r"   r   7CloudresourcemanagerV1beta1.ProjectsService.GetAncestry+  s/     ##M2f__
  8 8r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z)cloudresourcemanager.projects.getAncestryr   z(v1beta1/projects/{projectId}:getAncestrygetAncestryRequest.CloudresourcemanagerProjectsGetAncestryRequestGetAncestryResponseFrB   rM   rO   r$   r"   rP   r   8  s1    (>(>=#} M@*J0)r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist. For additional information about resource structure and identification, see [Resource Names](/apis/design/resource_names).

Args:
  request: (CloudresourcemanagerProjectsGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
rS   r0   r2   r5   s       r"   rS   8CloudresourcemanagerV1beta1.ProjectsService.GetIamPolicyE  rU   r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z*cloudresourcemanager.projects.getIamPolicyresourcez(v1beta1/projects/{resource}:getIamPolicyrX   /CloudresourcemanagerProjectsGetIamPolicyRequestrZ   FrB   rM   rO   r$   r"   rP   r   R  1    )?)?>"|L@+K#*r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists Projects that the caller has the `resourcemanager.projects.get` permission on and satisfy the specified filter. This method returns Projects in an unspecified order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method. NOTE: If the request filter contains a `parent.type` and `parent.id` and the caller has the `resourcemanager.projects.list` permission on the parent, the results will be drawn from an alternate index which provides more consistent results. In future versions of this API, this List method will be split into List and Search to properly capture the behavioral difference.

Args:
  request: (CloudresourcemanagerProjectsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListProjectsResponse) The response message.
r]   r0   r2   r5   s       r"   r]   0CloudresourcemanagerV1beta1.ProjectsService.List_  r_   r$   c                  @    [         R                  " SS/ / / SQSSSSSS	9
$ )
Nr;   z"cloudresourcemanager.projects.listra   r   r?   'CloudresourcemanagerProjectsListRequestListProjectsResponseFrB   rM   rO   r$   r"   rP   r   l  s-    !7!768(C1"r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Sets the IAM access control policy for the specified Project. CAUTION: This method will replace the existing policy, and cannot be used to append additional IAM settings. NOTE: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles. The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited via Cloud Platform console and must accept the invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + Membership changes that leave the project without any owners that have accepted the Terms of Service (ToS) will be rejected. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project.

Args:
  request: (CloudresourcemanagerProjectsSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
rh   r0   r2   r5   s       r"   rh   8CloudresourcemanagerV1beta1.ProjectsService.SetIamPolicyy  rU   r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z*cloudresourcemanager.projects.setIamPolicyr   z(v1beta1/projects/{resource}:setIamPolicyrk   /CloudresourcemanagerProjectsSetIamPolicyRequestrZ   FrB   rM   rO   r$   r"   rP   r     r   r$   c                 D    U R                  S5      nU R                  X1US9$ )a!  Returns permissions that a caller has on the specified Project.

Args:
  request: (CloudresourcemanagerProjectsTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
rn   r0   r2   r5   s       r"   rn   >CloudresourcemanagerV1beta1.ProjectsService.TestIamPermissions  rp   r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z0cloudresourcemanager.projects.testIamPermissionsr   z.v1beta1/projects/{resource}:testIamPermissionsrr   5CloudresourcemanagerProjectsTestIamPermissionsRequestrt   FrB   rM   rO   r$   r"   rP   r     s1    x/E/ED"|LF1Q70r$   c                 D    U R                  S5      nU R                  X1US9$ )a  Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have undelete permissions for this Project.

Args:
  request: (CloudresourcemanagerProjectsUndeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Undeleter0   r2   r5   s       r"   r   4CloudresourcemanagerV1beta1.ProjectsService.Undelete  s/     ##J/f__
  8 8r$   c                  @    [         R                  " SSS/S// SSSSSS	9
$ )
NrW   z&cloudresourcemanager.projects.undeleter   z%v1beta1/projects/{projectId}:undeleteundeleteProjectRequest+CloudresourcemanagerProjectsUndeleteRequestr   FrB   rM   rO   r$   r"   rP   r     s1    X%;%;:#} M=.G"&r$   c                 D    U R                  S5      nU R                  X1US9$ )aJ  Updates the attributes of the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have modify permissions for this Project.

Args:
  request: (Project) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Project) The response message.
rv   r0   r2   r5   s       r"   rv   2CloudresourcemanagerV1beta1.ProjectsService.Update  rx   r$   c                  @    [         R                  " SSS/S// SSSSSS9
$ )	Nrz   z$cloudresourcemanager.projects.updater   r   z	<request>r   FrB   rM   rO   r$   r"   rP   r     s1    8#9#98#} M4!#$$r$   r}   r)   )r~   r   r   r   r   r   r   r   r   r   r/   r   rS   r]   rh   rn   r   rv   r   r   r   s   @r"   r   r      s    2E
8F8F8C8!K8"L8D8"L8($8H8Fr$   r   )r   r   )r?   NTNNFFNNNN)r~   r   r   r   r   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   r   r   s   @r"   r   r   
   s    R/;(E-#(=?yz'(*"."+4,()-6:/4<@?C	/$dX44 dLL// L Lr$   r   N)
r   
__future__r   apitools.base.pyr   Bgooglecloudsdk.generated_clients.apis.cloudresourcemanager.v1beta1r   r   BaseApiClientr   rO   r$   r"   <module>r      s*    H ' % AU("8"8 Ur$   