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
enable instance virtual display #1387
Comments
the feature should be added here -- com.google.api.services.compute.model.Instance |
This feature is already available in the import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.services.compute.Compute;
import com.google.api.services.compute.model.DisplayDevice;
import com.google.api.services.compute.model.Instance;
import com.google.api.services.compute.model.Operation;
Compute compute = new Compute.Builder(new NetHttpTransport(), new JacksonFactory(), null)
.setApplicationName("my application")
.build();
DisplayDevice displayDevice = new DisplayDevice().setEnableDisplay(true);
Instance instance = new Instance().setDisplayDevice(displayDevice);
Compute.Instances.Insert insert = compute.instances()
.insert("my-project-id", "zone", instance);
Operation operation = insert.execute(); |
Thanks for looking into. Can you confirm the maven setup for accessing the import class? Here is what I have now which doesn't have the import available for me
|
Ah, you have a very old version of the compute API and the supporting libraries. google-http-client is on version 1.32.1, google-api-client is on 1.30.4, google-api-services-compute is at v1-rev20190825-1.30.3 Is there a reason you need to pin the dependencies so far back? For the above, I would recommend:
where |
@chingor13 Thank for following up.
|
@hhansalesforce Can you please make sure you using latest version of google-api-client? See here |
@chingor13 Can you please help me here? java.lang.NoSuchMethodError: com.google.api.client.http.HttpRequest.setResponseReturnRawInputStream(Z)Lcom/google/api/client/http/HttpRequest; |
I am also getting the above exception - google-api-client is up to date. These dependencies are explicitly defined in my pom.xml and I'm still getting the above error.
|
if you found solution of this problem then please let me know |
It's because of the old or some other JAR conflicts. I have removed that
JAR's from the project and then it's working fine.
Kiran Dongare
Software Engineer
+91 7588195932
Join us live for *Work@Life*, your ultimate guide to the Employee
Experience. Tuesday @ 1:00 PM ET Subscribe here!
<https://www.youtube.com/playlist?list=PLEskC-4J0V-_XyIksPlWtQrvK47y8uDgl>
*Live with Dan* shares his unfiltered thoughts on the world of market
research every Friday @ 12:00 PM ET Subscribe here!
<https://www.youtube.com/playlist?list=PLEskC-4J0V-9xaL2i5euptHa3gIQVmFBm>
Never miss out on what's new with the customer experience by joining us
every Wednesday on CX Forums. Sign up here!
<https://www.eventbrite.com/o/cx-forums-the-customer-experience-connection-31771064491>
How am I doing? Take this 40 Second Survey
<http://feedback.questionpro.com/?c1=kiran.dongare>
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, re-transmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material
from all computers.
…On Wed, Feb 3, 2021 at 1:02 AM Mahesh Myana ***@***.***> wrote:
@chingor13 <https://github.com/chingor13> Can you please help me here?
java.lang.NoSuchMethodError:
com.google.api.client.http.HttpRequest.setResponseReturnRawInputStream(Z)Lcom/google/api/client/http/HttpRequest;
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.buildHttpRequest(AbstractGoogleClientRequest.java:435)
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:542)
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:475)
at
com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:592)
at
com.surveyconsole.admin.screwdrive.activity.gmail.PushNotificationSubscriber.doService(PushNotificationSubscriber.java:45)
at com.bhaskaran.ui.ServletAdapter.doPost(ServletAdapter.java:162)
at com.bhaskaran.ui.ServletAdapter.doGet(ServletAdapter.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:97)
if you found solution of this problem then please let me know
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1387 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM6VLMS7NW3ESJPR3C2JLTS5BHNVANCNFSM4I3JMFMA>
.
|
thank you so much |
Thanks for stopping by to let us know something could be better!
Need the api support for this feature when creating instance
https://cloud.google.com/compute/docs/instances/enable-instance-virtual-display
The text was updated successfully, but these errors were encountered: