Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates the configuration of the specified service.
See: App Engine Admin API Reference for appengine.apps.services.patch
.
Synopsis
- type AppsServicesPatchResource = "v1" :> ("apps" :> (Capture "appsId" Text :> ("services" :> (Capture "servicesId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "migrateTraffic" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Service :> Patch '[JSON] Operation)))))))))))))
- appsServicesPatch :: Service -> Text -> Text -> AppsServicesPatch
- data AppsServicesPatch
- aspXgafv :: Lens' AppsServicesPatch (Maybe Xgafv)
- aspUploadProtocol :: Lens' AppsServicesPatch (Maybe Text)
- aspUpdateMask :: Lens' AppsServicesPatch (Maybe GFieldMask)
- aspAccessToken :: Lens' AppsServicesPatch (Maybe Text)
- aspUploadType :: Lens' AppsServicesPatch (Maybe Text)
- aspPayload :: Lens' AppsServicesPatch Service
- aspMigrateTraffic :: Lens' AppsServicesPatch (Maybe Bool)
- aspAppsId :: Lens' AppsServicesPatch Text
- aspServicesId :: Lens' AppsServicesPatch Text
- aspCallback :: Lens' AppsServicesPatch (Maybe Text)
REST Resource
type AppsServicesPatchResource = "v1" :> ("apps" :> (Capture "appsId" Text :> ("services" :> (Capture "servicesId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "migrateTraffic" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Service :> Patch '[JSON] Operation))))))))))))) Source #
A resource alias for appengine.apps.services.patch
method which the
AppsServicesPatch
request conforms to.
Creating a Request
Creates a value of AppsServicesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AppsServicesPatch Source #
Updates the configuration of the specified service.
See: appsServicesPatch
smart constructor.
Instances
Request Lenses
aspUploadProtocol :: Lens' AppsServicesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
aspUpdateMask :: Lens' AppsServicesPatch (Maybe GFieldMask) Source #
Standard field mask for the set of fields to be updated.
aspAccessToken :: Lens' AppsServicesPatch (Maybe Text) Source #
OAuth access token.
aspUploadType :: Lens' AppsServicesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
aspPayload :: Lens' AppsServicesPatch Service Source #
Multipart request metadata.
aspMigrateTraffic :: Lens' AppsServicesPatch (Maybe Bool) Source #
Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
aspAppsId :: Lens' AppsServicesPatch Text Source #
Part of `name`. Name of the resource to update. Example: apps/myapp/services/default.
aspServicesId :: Lens' AppsServicesPatch Text Source #
Part of `name`. See documentation of `appsId`.
aspCallback :: Lens' AppsServicesPatch (Maybe Text) Source #
JSONP