-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discoveryengine
datastore
class does not contain billing_estimation
attribute
#13118
Comments
@ffeldhaus Thanks for reporting this. I can confirm that the proto definitions used here do not have the Meanwhile, can you try using from google.cloud import discoveryengine_v1
client = discoveryengine_v1.DataStoreServiceClient(transport="rest")
data_store = client.get_data_store(name=data_store_name) # convert the response to a dictionary
response = data_store.json()
billing_estimation = response.get('billing_estimation', None) I didn't try the above approach but I think you should still be able to access the field in the meanwhile. |
Googlers see: b/371606109 |
I tried using transport |
You're right. There isn't a defined accessor for the property. What I suggested was based on the assumption that the property should still be accessible somehow given that it's exposed by the server (something I haven't tried). Nonetheless, I'll provide an update once we have the protos updated which should fix the problem. |
This was fixed in #13142 which was released in #13143 . Lines 80 to 82 in 27ea6e2
|
@parthea Unfortunately this is only fixed in |
I updated the internal bug to request that v1beta and v1alpha also be updated. |
Determine this is the right repository
Summary of the issue
Context
Any method returning a datastore such as list or get as well as initializing a data store object directly returns an object which is missing the
billing_estimation
attribute.The REST API documentation clearly shows that
billingEstimation
is part of thedatastore
class. Also a REST API call to get a datastore returns thebillingEstimation
attribute.Expected Behavior:
The following code (requiring the data store name as
data_store_name
) should return thebilling_estimation
Actual Behavior:
REST API Behavior:
API client name and version
google-cloud-discoveryengine 0.12.2
Reproduction steps: code
file: main.py
Reproduction steps: supporting files
No response
Reproduction steps: actual results
Reproduction steps: expected results
No exception.
OS & version + platform
macOS 14.6.1
Python environment
Python 3.12.6
Python dependencies
Package Version
cachetools 5.5.0
certifi 2024.8.30
charset-normalizer 3.3.2
google-api-core 2.20.0
google-auth 2.35.0
google-cloud-discoveryengine 0.12.2
googleapis-common-protos 1.65.0
grpcio 1.66.2
grpcio-status 1.66.2
idna 3.10
pip 24.2
proto-plus 1.24.0
protobuf 5.28.2
pyasn1 0.6.1
pyasn1_modules 0.4.1
requests 2.32.3
rsa 4.9
urllib3 2.2.3
The text was updated successfully, but these errors were encountered: