Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
framework.infrastructure.gcp.api.GcpProjectApiResource Class Reference
Inheritance diagram for framework.infrastructure.gcp.api.GcpProjectApiResource:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, discovery.Resource api, str project)
 
str resource_pretty_format (self, dict body)
 

Static Public Member Functions

def wait_for_operation (operation_request, test_success_fn, timeout_sec=_WAIT_FOR_OPERATION_SEC, wait_sec=_WAIT_FIXED_SEC)
 

Private Member Functions

Dict[str, Any_execute (self, HttpRequest request, *Optional[int] num_retries=_GCP_API_RETRIES)
 

Private Attributes

 _highlighter
 

Static Private Attributes

int _GCP_API_RETRIES = 5
 
int _WAIT_FIXED_SEC = 2
 
int _WAIT_FOR_OPERATION_SEC = 60 * 10
 

Detailed Description

Definition at line 329 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

def framework.infrastructure.gcp.api.GcpProjectApiResource.__init__ (   self,
discovery.Resource  api,
str  project 
)

Definition at line 335 of file api.py.

Member Function Documentation

◆ _execute()

Dict[str, Any] framework.infrastructure.gcp.api.GcpProjectApiResource._execute (   self,
HttpRequest  request,
*Optional[int]   num_retries = _GCP_API_RETRIES 
)
private
Execute the immediate request.

Returns:
  Unmarshalled response as a dictionary.

Raises:
  ResponseError if the response was not a 2xx.
  TransportError if a transport error has occurred.

Definition at line 342 of file api.py.

◆ resource_pretty_format()

str framework.infrastructure.gcp.api.GcpProjectApiResource.resource_pretty_format (   self,
dict  body 
)
Return a string with pretty-printed resource body.

Definition at line 365 of file api.py.

◆ wait_for_operation()

def framework.infrastructure.gcp.api.GcpProjectApiResource.wait_for_operation (   operation_request,
  test_success_fn,
  timeout_sec = _WAIT_FOR_OPERATION_SEC,
  wait_sec = _WAIT_FIXED_SEC 
)
static

Definition at line 371 of file api.py.

Member Data Documentation

◆ _GCP_API_RETRIES

int framework.infrastructure.gcp.api.GcpProjectApiResource._GCP_API_RETRIES = 5
staticprivate

Definition at line 333 of file api.py.

◆ _highlighter

framework.infrastructure.gcp.api.GcpProjectApiResource._highlighter
private

Definition at line 338 of file api.py.

◆ _WAIT_FIXED_SEC

int framework.infrastructure.gcp.api.GcpProjectApiResource._WAIT_FIXED_SEC = 2
staticprivate

Definition at line 332 of file api.py.

◆ _WAIT_FOR_OPERATION_SEC

int framework.infrastructure.gcp.api.GcpProjectApiResource._WAIT_FOR_OPERATION_SEC = 60 * 10
staticprivate

Definition at line 331 of file api.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10