-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Update Google Credentials #3023
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were a few things that were modified by javafmt that aren't how we do things now, but they are out of scope for this PR. LGTM
/** Set the path of the OS image for the sample VM instance to be created. */ | ||
private static final String SOURCE_IMAGE_PREFIX = | ||
"https://www.googleapis.com/compute/v1/projects/"; | ||
|
||
private static final String SOURCE_IMAGE_PATH = | ||
"debian-cloud/global/images/debian-7-wheezy-v20150710"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ubuntu-2004-focal-v20200529
"https://www.googleapis.com/compute/v1/projects/" | ||
+ PROJECT_ID + "/zones/" + ZONE_NAME + "/machineTypes/n1-standard-1"); | ||
+ PROJECT_ID | ||
+ "/zones/" | ||
+ ZONE_NAME | ||
+ "/machineTypes/n1-standard-1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could create this string w/ String.format(...)
Also, we should probably use e2-standard-1
as well.
"https://www.googleapis.com/compute/v1/projects/" | ||
+ PROJECT_ID | ||
+ "/global/networks/default"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create w/ String.format(...)
"https://www.googleapis.com/compute/v1/projects/" | ||
+ PROJECT_ID | ||
+ "/zones/" | ||
+ ZONE_NAME | ||
+ "/diskTypes/pd-standard"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create w/ String.format(...)
@@ -208,7 +220,8 @@ public static Operation startInstance(Compute compute, String instanceName) thro | |||
// If you put a script called "vm-startup.sh" in this Google Cloud Storage | |||
// bucket, it will execute on VM startup. This assumes you've created a | |||
// bucket named the same as your PROJECT_ID. | |||
// For info on creating buckets see: https://cloud.google.com/storage/docs/cloud-console#_creatingbuckets | |||
// For info on creating buckets see: | |||
// https://cloud.google.com/storage/docs/cloud-console#_creatingbuckets | |||
item.setValue("gs://" + PROJECT_ID + "/vm-startup.sh"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String.format(...)
?
* <p>- Create job within batch | ||
* | ||
* - Update job within batch | ||
* <p>- Update job within batch | ||
* | ||
* - Delete job within batch. | ||
* <p>- Delete job within batch. | ||
* | ||
* For simplicity, the samples always use the same kind of requests in each batch. In a real case , | ||
* you might put different kinds of request in one batch. | ||
* <p>For simplicity, the samples always use the same kind of requests in each batch. In a real case | ||
* , you might put different kinds of request in one batch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>
!!!
* <p>- Construct a Job with CustomAttribute | ||
* | ||
* - Search Job with CustomAttributeFilter | ||
* <p>- Search Job with CustomAttributeFilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>
!!!
* <p>- Default auto complete (on both company display name and job title) | ||
* | ||
* - Auto complete on job title only | ||
* <p>- Auto complete on job title only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>
!!!
* <p>- Construct a company with required fields | ||
* | ||
* - Create a company | ||
* <p>- Create a company | ||
* | ||
* - Get a company | ||
* <p>- Get a company | ||
* | ||
* - Update a company | ||
* <p>- Update a company | ||
* | ||
* - Update a company with field mask | ||
* <p>- Update a company with field mask | ||
* | ||
* - Delete a company | ||
* <p>- Delete a company |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>
!!!
* <p>- Construct a job with required fields | ||
* | ||
* - Create a job | ||
* <p>- Create a job | ||
* | ||
* - Get a job | ||
* <p>- Get a job | ||
* | ||
* - Update a job | ||
* <p>- Update a job | ||
* | ||
* - Update a job with field mask | ||
* <p>- Update a job with field mask | ||
* | ||
* - Delete a job | ||
* <p>- Delete a job | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p>
!!!
* Update credentials * lint * Update accesstoken * lint * remove <p> * Use String.format * lint * Update test
Fixes #2885
pom.xml
parent set to latestshared-configuration
mvn -P lint clean verify
)Checkstyle
passing is required;Spotbugs
,ErrorProne
,PMD
, etc.ERROR
's are advisory only)