@@ -29,27 +29,48 @@ public class GoogleHealthAPIScopes {
2929 /** See your Google Health activity and fitness data. */
3030 public static final String GOOGLEHEALTH_ACTIVITY_AND_FITNESS_READONLY = "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly" ;
3131
32+ /** Add activity and fitness data to Google Health, and edit or delete the data it adds.. */
33+ public static final String GOOGLEHEALTH_ACTIVITY_AND_FITNESS_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly" ;
34+
3235 /** See your Google Health ECG data. */
3336 public static final String GOOGLEHEALTH_ECG_READONLY = "https://www.googleapis.com/auth/googlehealth.ecg.readonly" ;
3437
3538 /** See your Google Health health metrics and measurement data. */
3639 public static final String GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_READONLY = "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly" ;
3740
41+ /** Add health metric and measurements data to Google Health, and edit or delete the data it adds.. */
42+ public static final String GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly" ;
43+
3844 /** See your Google Health Irregular Rhythm Notifications data. */
3945 public static final String GOOGLEHEALTH_IRN_READONLY = "https://www.googleapis.com/auth/googlehealth.irn.readonly" ;
4046
4147 /** See exercise GPS location data in Google Health. */
4248 public static final String GOOGLEHEALTH_LOCATION_READONLY = "https://www.googleapis.com/auth/googlehealth.location.readonly" ;
4349
50+ /** Add exercise GPS location data to Google Health, and edit or delete the data it adds.. */
51+ public static final String GOOGLEHEALTH_LOCATION_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.location.writeonly" ;
52+
53+ /** Add nutrition data to Google Health, and edit or delete the data it adds.. */
54+ public static final String GOOGLEHEALTH_NUTRITION_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly" ;
55+
4456 /** See your Google Health profile data. */
4557 public static final String GOOGLEHEALTH_PROFILE_READONLY = "https://www.googleapis.com/auth/googlehealth.profile.readonly" ;
4658
59+ /** Add profile data to Google Health, and edit or delete the data it adds.. */
60+ public static final String GOOGLEHEALTH_PROFILE_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.profile.writeonly" ;
61+
4762 /** See your Google Health settings. */
4863 public static final String GOOGLEHEALTH_SETTINGS_READONLY = "https://www.googleapis.com/auth/googlehealth.settings.readonly" ;
4964
65+ /** Add settings data to Google Health, and edit or delete the data it adds.. */
66+ public static final String GOOGLEHEALTH_SETTINGS_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.settings.writeonly" ;
67+
5068 /** See your Google Health sleep data. */
5169 public static final String GOOGLEHEALTH_SLEEP_READONLY = "https://www.googleapis.com/auth/googlehealth.sleep.readonly" ;
5270
71+ /** Add sleep data to Google Health, and edit or delete the data it adds.. */
72+ public static final String GOOGLEHEALTH_SLEEP_WRITEONLY = "https://www.googleapis.com/auth/googlehealth.sleep.writeonly" ;
73+
5374 /**
5475 * Returns an unmodifiable set that contains all scopes declared by this class.
5576 *
@@ -59,13 +80,20 @@ public static java.util.Set<String> all() {
5980 java .util .Set <String > set = new java .util .HashSet <String >();
6081 set .add (CLOUD_PLATFORM );
6182 set .add (GOOGLEHEALTH_ACTIVITY_AND_FITNESS_READONLY );
83+ set .add (GOOGLEHEALTH_ACTIVITY_AND_FITNESS_WRITEONLY );
6284 set .add (GOOGLEHEALTH_ECG_READONLY );
6385 set .add (GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_READONLY );
86+ set .add (GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_WRITEONLY );
6487 set .add (GOOGLEHEALTH_IRN_READONLY );
6588 set .add (GOOGLEHEALTH_LOCATION_READONLY );
89+ set .add (GOOGLEHEALTH_LOCATION_WRITEONLY );
90+ set .add (GOOGLEHEALTH_NUTRITION_WRITEONLY );
6691 set .add (GOOGLEHEALTH_PROFILE_READONLY );
92+ set .add (GOOGLEHEALTH_PROFILE_WRITEONLY );
6793 set .add (GOOGLEHEALTH_SETTINGS_READONLY );
94+ set .add (GOOGLEHEALTH_SETTINGS_WRITEONLY );
6895 set .add (GOOGLEHEALTH_SLEEP_READONLY );
96+ set .add (GOOGLEHEALTH_SLEEP_WRITEONLY );
6997 return java .util .Collections .unmodifiableSet (set );
7098 }
7199
0 commit comments