@@ -20,6 +20,88 @@ module Network.Google.AppEngine.Types.Product where
2020import Network.Google.AppEngine.Types.Sum
2121import Network.Google.Prelude
2222
23+-- | Metadata for the given google.longrunning.Operation.
24+--
25+-- /See:/ 'operationMetadataExperimental' smart constructor.
26+data OperationMetadataExperimental = OperationMetadataExperimental'
27+ { _omeInsertTime :: !(Maybe Text)
28+ , _omeUser :: !(Maybe Text)
29+ , _omeMethod :: !(Maybe Text)
30+ , _omeEndTime :: !(Maybe Text)
31+ , _omeTarget :: !(Maybe Text)
32+ } deriving (Eq,Show,Data,Typeable,Generic)
33+
34+-- | Creates a value of 'OperationMetadataExperimental' with the minimum fields required to make a request.
35+--
36+-- Use one of the following lenses to modify other fields as desired:
37+--
38+-- * 'omeInsertTime'
39+--
40+-- * 'omeUser'
41+--
42+-- * 'omeMethod'
43+--
44+-- * 'omeEndTime'
45+--
46+-- * 'omeTarget'
47+operationMetadataExperimental
48+ :: OperationMetadataExperimental
49+operationMetadataExperimental =
50+ OperationMetadataExperimental'
51+ { _omeInsertTime = Nothing
52+ , _omeUser = Nothing
53+ , _omeMethod = Nothing
54+ , _omeEndTime = Nothing
55+ , _omeTarget = Nothing
56+ }
57+
58+-- | Time that this operation was created.\'OutputOnly
59+omeInsertTime :: Lens' OperationMetadataExperimental (Maybe Text)
60+omeInsertTime
61+ = lens _omeInsertTime
62+ (\ s a -> s{_omeInsertTime = a})
63+
64+-- | User who requested this operation.\'OutputOnly
65+omeUser :: Lens' OperationMetadataExperimental (Maybe Text)
66+omeUser = lens _omeUser (\ s a -> s{_omeUser = a})
67+
68+-- | API method that initiated this operation. Example:
69+-- google.appengine.experimental.CustomDomains.CreateCustomDomain.\'OutputOnly
70+omeMethod :: Lens' OperationMetadataExperimental (Maybe Text)
71+omeMethod
72+ = lens _omeMethod (\ s a -> s{_omeMethod = a})
73+
74+-- | Time that this operation completed.\'OutputOnly
75+omeEndTime :: Lens' OperationMetadataExperimental (Maybe Text)
76+omeEndTime
77+ = lens _omeEndTime (\ s a -> s{_omeEndTime = a})
78+
79+-- | Name of the resource that this operation is acting on. Example:
80+-- apps\/myapp\/customDomains\/example.com.\'OutputOnly
81+omeTarget :: Lens' OperationMetadataExperimental (Maybe Text)
82+omeTarget
83+ = lens _omeTarget (\ s a -> s{_omeTarget = a})
84+
85+instance FromJSON OperationMetadataExperimental where
86+ parseJSON
87+ = withObject "OperationMetadataExperimental"
88+ (\ o ->
89+ OperationMetadataExperimental' <$>
90+ (o .:? "insertTime") <*> (o .:? "user") <*>
91+ (o .:? "method")
92+ <*> (o .:? "endTime")
93+ <*> (o .:? "target"))
94+
95+instance ToJSON OperationMetadataExperimental where
96+ toJSON OperationMetadataExperimental'{..}
97+ = object
98+ (catMaybes
99+ [("insertTime" .=) <$> _omeInsertTime,
100+ ("user" .=) <$> _omeUser,
101+ ("method" .=) <$> _omeMethod,
102+ ("endTime" .=) <$> _omeEndTime,
103+ ("target" .=) <$> _omeTarget])
104+
23105-- | Target scaling by network usage. Only applicable for VM runtimes.
24106--
25107-- /See:/ 'networkUtilization' smart constructor.
@@ -102,41 +184,41 @@ instance ToJSON NetworkUtilization where
102184 ("targetSentBytesPerSecond" .=) <$>
103185 _nuTargetSentBytesPerSecond])
104186
105−-- | The \`Status\` type defines a logical error model that is suitable for
187+-- | The Status type defines a logical error model that is suitable for
106188-- different programming environments, including REST APIs and RPC APIs. It
107−-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
108−-- designed to be: - Simple to use and understand for most users - Flexible
109−-- enough to meet unexpected needs # Overview The \`Status\` message
110−-- contains three pieces of data: error code, error message, and error
111−-- details. The error code should be an enum value of google.rpc.Code, but
112−-- it may accept additional error codes if needed. The error message should
113−-- be a developer-facing English message that helps developers *understand*
114−-- and *resolve* the error. If a localized user-facing error message is
115−-- needed, put the localized message in the error details or localize it in
116−-- the client. The optional error details may contain arbitrary information
189+-- is used by gRPC (https:\/\/github.com\/grpc). The error model is
190+-- designed to be: Simple to use and understand for most users Flexible
191+-- enough to meet unexpected needsOverviewThe Status message contains three
192+-- pieces of data: error code, error message, and error details. The error
193+-- code should be an enum value of google.rpc.Code, but it may accept
194+-- additional error codes if needed. The error message should be a
195+-- developer-facing English message that helps developers understand and
196+-- resolve the error. If a localized user-facing error message is needed,
197+-- put the localized message in the error details or localize it in the
198+-- client. The optional error details may contain arbitrary information
117199-- about the error. There is a predefined set of error detail types in the
118−-- package \`google.rpc\` which can be used for common error conditions. #
119−-- Language mapping The \`Status\` message is the logical representation of
120−-- the error model, but it is not necessarily the actual wire format. When
121−-- the \`Status\` message is exposed in different client libraries and
122−-- different wire protocols, it can be mapped differently. For example, it
123−-- will likely be mapped to some exceptions in Java, but more likely mapped
124−-- to some error codes in C. # Other uses The error model and the
125−-- \`Status\` message can be used in a variety of environments, either with
126−-- or without APIs, to provide a consistent developer experience across
127−-- different environments. Example uses of this error model include: -
200+-- package google.rpc which can be used for common error
201+-- conditions.Language mappingThe Status message is the logical
202+-- representation of the error model, but it is not necessarily the actual
203+-- wire format. When the Status message is exposed in different client
204+-- libraries and different wire protocols, it can be mapped differently.
205+-- For example, it will likely be mapped to some exceptions in Java, but
206+-- more likely mapped to some error codes in C.Other usesThe error model
207+-- and the Status message can be used in a variety of environments, either
208+-- with or without APIs, to provide a consistent developer experience
209+-- across different environments.Example uses of this error model include:
128210-- Partial errors. If a service needs to return partial errors to the
129−-- client, it may embed the \`Status\` in the normal response to indicate
130−-- the partial errors. - Workflow errors. A typical workflow has multiple
131−-- steps. Each step may have a \`Status\` message for error reporting
132−-- purpose. - Batch operations. If a client uses batch request and batch
133−-- response, the \`Status\` message should be used directly inside batch
134−-- response, one for each error sub-response. - Asynchronous operations. If
135−-- an API call embeds asynchronous operation results in its response, the
136−-- status of those operations should be represented directly using the
137−-- \`Status\` message. - Logging. If some API errors are stored in logs,
138−-- the message \`Status\` could be used directly after any stripping needed
139−-- for security\/privacy reasons.
211+-- client, it may embed the Status in the normal response to indicate the
212+-- partial errors. Workflow errors. A typical workflow has multiple steps.
213+-- Each step may have a Status message for error reporting purpose. Batch
214+-- operations. If a client uses batch request and batch response, the
215+-- Status message should be used directly inside batch response, one for
216+-- each error sub-response. Asynchronous operations. If an API call embeds
217+-- asynchronous operation results in its response, the status of those
218+-- operations should be represented directly using the Status message.
219+-- Logging. If some API errors are stored in logs, the message Status could
220+-- be used directly after any stripping needed for security\/privacy
221+-- reasons.
140222--
141223-- /See:/ 'status' smart constructor.
142224data Status = Status'
@@ -364,7 +446,7 @@ instance ToJSON ScriptHandler where
364446 = object
365447 (catMaybes [("scriptPath" .=) <$> _shScriptPath])
366448
367−-- | Response message for \`Services.ListServices\`.
449+-- | Response message for Services.ListServices.
368450--
369451-- /See:/ 'listServicesResponse' smart constructor.
370452data ListServicesResponse = ListServicesResponse'
@@ -488,15 +570,15 @@ umURLRegex :: Lens' URLMap (Maybe Text)
488570umURLRegex
489571 = lens _umURLRegex (\ s a -> s{_umURLRegex = a})
490572
491−-- | \`30x\` code to use when performing redirects for the \`secure\` field.
492−-- Defaults to \`302\`.
573+-- | 30x code to use when performing redirects for the secure field. Defaults
574+-- to 302.
493575umRedirectHTTPResponseCode :: Lens' URLMap (Maybe Text)
494576umRedirectHTTPResponseCode
495577 = lens _umRedirectHTTPResponseCode
496578 (\ s a -> s{_umRedirectHTTPResponseCode = a})
497579
498580-- | Action to take when users access resources that require authentication.
499−-- Defaults to \`redirect\`.
581+-- Defaults to redirect.
500582umAuthFailAction :: Lens' URLMap (Maybe Text)
501583umAuthFailAction
502584 = lens _umAuthFailAction
@@ -884,8 +966,8 @@ instance ToJSON HealthCheck where
884966 ("timeout" .=) <$> _hcTimeout,
885967 ("unhealthyThreshold" .=) <$> _hcUnhealthyThreshold])
886968
887−-- | [Google Cloud
888−-- Endpoints](https:\/\/cloud.google.com\/appengine\/docs\/python\/endpoints\/)
969+-- | Google Cloud Endpoints
970+-- (https:\/\/cloud.google.com\/appengine\/docs\/python\/endpoints\/)
889971-- configuration for API handlers.
890972--
891973-- /See:/ 'apiConfigHandler' smart constructor.
@@ -937,14 +1019,13 @@ achURL :: Lens' APIConfigHandler (Maybe Text)
9371019achURL = lens _achURL (\ s a -> s{_achURL = a})
9381020
9391021-- | Action to take when users access resources that require authentication.
940−-- Defaults to \`redirect\`.
1022+-- Defaults to redirect.
9411023achAuthFailAction :: Lens' APIConfigHandler (Maybe Text)
9421024achAuthFailAction
9431025 = lens _achAuthFailAction
9441026 (\ s a -> s{_achAuthFailAction = a})
9451027
946−-- | Level of login required to access this resource. Defaults to
947−-- \`optional\`.
1028+-- | Level of login required to access this resource. Defaults to optional.
9481029achLogin :: Lens' APIConfigHandler (Maybe Text)
9491030achLogin = lens _achLogin (\ s a -> s{_achLogin = a})
9501031
@@ -968,8 +1049,8 @@ instance ToJSON APIConfigHandler where
9681049 ("authFailAction" .=) <$> _achAuthFailAction,
9691050 ("login" .=) <$> _achLogin])
9701051
971−-- | Environment variables available to the application. Only returned in
972−-- \`GET\` requests if \`view=FULL\` is set.
1052+-- | Environment variables available to the application.Only returned in GET
1053+-- requests if view=FULL is set.
9731054--
9741055-- /See:/ 'versionEnvVariables' smart constructor.
9751056newtype VersionEnvVariables = VersionEnvVariables'
@@ -1054,41 +1135,41 @@ application =
10541135 , _aLocationId = Nothing
10551136 }
10561137
1057−-- | Hostname used to reach this application, as resolved by App Engine.
1058−-- \'OutputOnly
1138+-- | Hostname used to reach this application, as resolved by App
1139+-- Engine.\'OutputOnly
10591140aDefaultHostname :: Lens' Application (Maybe Text)
10601141aDefaultHostname
10611142 = lens _aDefaultHostname
10621143 (\ s a -> s{_aDefaultHostname = a})
10631144
1064−-- | Cookie expiration policy for this application. \'OutputOnly
1145+-- | Cookie expiration policy for this application.
10651146aDefaultCookieExpiration :: Lens' Application (Maybe Text)
10661147aDefaultCookieExpiration
10671148 = lens _aDefaultCookieExpiration
10681149 (\ s a -> s{_aDefaultCookieExpiration = a})
10691150
10701151-- | Google Apps authentication domain that controls which users can access
1071−-- this application. Defaults to open access for any Google Account.
1152+-- this application.Defaults to open access for any Google Account.
10721153aAuthDomain :: Lens' Application (Maybe Text)
10731154aAuthDomain
10741155 = lens _aAuthDomain (\ s a -> s{_aAuthDomain = a})
10751156
10761157-- | Google Cloud Storage bucket that can be used for storing files
10771158-- associated with this application. This bucket is associated with the
1078−-- application and can be used by the gcloud deployment commands.
1079−-- \'OutputOnly
1159+-- application and can be used by the gcloud deployment
1160+-- commands.\'OutputOnly
10801161aCodeBucket :: Lens' Application (Maybe Text)
10811162aCodeBucket
10821163 = lens _aCodeBucket (\ s a -> s{_aCodeBucket = a})
10831164
10841165-- | Full path to the Application resource in the API. Example:
1085−-- \`apps\/myapp\`. \'OutputOnly
1166+-- apps\/myapp.\'OutputOnly
10861167aName :: Lens' Application (Maybe Text)
10871168aName = lens _aName (\ s a -> s{_aName = a})
10881169
10891170-- | HTTP path dispatch rules for requests to the application that do not
1090−-- explicitly target a service or version. Rules are order-dependent.
1091−-- \'OutputOnly
1171+-- explicitly target a service or version. Rules are
1172+-- order-dependent.\'OutputOnly
10921173aDispatchRules :: Lens' Application [URLDispatchRule]
10931174aDispatchRules
10941175 = lens _aDispatchRules
@@ -1097,7 +1178,7 @@ aDispatchRules
10971178 . _Coerce
10981179
10991180-- | Google Cloud Storage bucket that can be used by this application to
1100−-- store content. \'OutputOnly
1181+-- store content.\'OutputOnly
11011182aDefaultBucket :: Lens' Application (Maybe Text)
11021183aDefaultBucket
11031184 = lens _aDefaultBucket
@@ -1105,15 +1186,15 @@ aDefaultBucket
11051186
11061187-- | Identifier of the Application resource. This identifier is equivalent to
11071188-- the project ID of the Google Cloud Platform project where you want to
1108−-- deploy your application. Example: \`myapp\`.
1189+-- deploy your application. Example: myapp.
11091190aId :: Lens' Application (Maybe Text)
11101191aId = lens _aId (\ s a -> s{_aId = a})
11111192
11121193-- | Location from which this application will be run. Application instances
11131194-- will run out of data centers in the chosen location, which is also where
1114−-- all of the application\'s end user content is stored. Defaults to
1115−-- \`us-central\`. Options are: \`us-central\` - Central US \`europe-west\`
1116−-- - Western Europe \`us-east1\` - Eastern US
1195+-- all of the application\'s end user content is stored.Defaults to
1196+-- us-central.Options are:us-central - Central USeurope-west - Western
1197+-- Europeus-east1 - Eastern US
11171198aLocationId :: Lens' Application (Maybe Text)
11181199aLocationId
11191200 = lens _aLocationId (\ s a -> s{_aLocationId = a})
@@ -1221,12 +1302,12 @@ sSplit :: Lens' Service (Maybe TrafficSplit)
12211302sSplit = lens _sSplit (\ s a -> s{_sSplit = a})
12221303
12231304-- | Full path to the Service resource in the API. Example:
1224−-- \`apps\/myapp\/services\/default\`. \'OutputOnly
1305+-- apps\/myapp\/services\/default.\'OutputOnly
12251306sName :: Lens' Service (Maybe Text)
12261307sName = lens _sName (\ s a -> s{_sName = a})
12271308
12281309-- | Relative name of the service within the application. Example:
1229−-- \`default\`. \'OutputOnly
1310+-- default.\'OutputOnly
12301311sId :: Lens' Service (Maybe Text)
12311312sId = lens _sId (\ s a -> s{_sId = a})
12321313
@@ -1244,6 +1325,59 @@ instance ToJSON Service where
12441325 [("split" .=) <$> _sSplit, ("name" .=) <$> _sName,
12451326 ("id" .=) <$> _sId])
12461327
1328+-- | Cloud Endpoints (https:\/\/cloud.google.com\/endpoints) configuration.
1329+-- The Endpoints API Service provides tooling for serving Open API and gRPC
1330+-- endpoints via an NGINX proxy.The fields here refer to the name and
1331+-- configuration id of a \"service\" resource in the Service Management API
1332+-- (https:\/\/cloud.google.com\/service-management\/overview).
1333+--
1334+-- /See:/ 'endpointsAPIService' smart constructor.
1335+data EndpointsAPIService = EndpointsAPIService'
1336+ { _easName :: !(Maybe Text)
1337+ , _easConfigId :: !(Maybe Text)
1338+ } deriving (Eq,Show,Data,Typeable,Generic)
1339+
1340+-- | Creates a value of 'EndpointsAPIService' with the minimum fields required to make a request.
1341+--
1342+-- Use one of the following lenses to modify other fields as desired:
1343+--
1344+-- * 'easName'
1345+--
1346+-- * 'easConfigId'
1347+endpointsAPIService
1348+ :: EndpointsAPIService
1349+endpointsAPIService =
1350+ EndpointsAPIService'
1351+ { _easName = Nothing
1352+ , _easConfigId = Nothing
1353+ }
1354+
1355+-- | Endpoints service name which is the name of the \"service\" resource in
1356+-- the Service Management API. For example
1357+-- \"myapi.endpoints.myproject.cloud.goog\"
1358+easName :: Lens' EndpointsAPIService (Maybe Text)
1359+easName = lens _easName (\ s a -> s{_easName = a})
1360+
1361+-- | Endpoints service configuration id as specified by the Service
1362+-- Management API. For example \"2016-09-19r1\"
1363+easConfigId :: Lens' EndpointsAPIService (Maybe Text)
1364+easConfigId
1365+ = lens _easConfigId (\ s a -> s{_easConfigId = a})
1366+
1367+instance FromJSON EndpointsAPIService where
1368+ parseJSON
1369+ = withObject "EndpointsAPIService"
1370+ (\ o ->
1371+ EndpointsAPIService' <$>
1372+ (o .:? "name") <*> (o .:? "configId"))
1373+
1374+instance ToJSON EndpointsAPIService where
1375+ toJSON EndpointsAPIService'{..}
1376+ = object
1377+ (catMaybes
1378+ [("name" .=) <$> _easName,
1379+ ("configId" .=) <$> _easConfigId])
1380+
12471381-- | A resource that represents Google Cloud Platform location.
12481382--
12491383-- /See:/ 'location' smart constructor.
@@ -1276,7 +1410,7 @@ location =
12761410 }
12771411
12781412-- | Resource name for the location, which may vary between implementations.
1279−-- For example: \`\"projects\/example-project\/locations\/us-east1\"\`
1413+-- For example: \"projects\/example-project\/locations\/us-east1\"
12801414locName :: Lens' Location (Maybe Text)
12811415locName = lens _locName (\ s a -> s{_locName = a})
12821416
@@ -1292,7 +1426,7 @@ locLabels :: Lens' Location (Maybe LocationLabels)
12921426locLabels
12931427 = lens _locLabels (\ s a -> s{_locLabels = a})
12941428
1295−-- | The canonical id for this location. For example: \`\"us-east1\"\`.
1429+-- | The canonical id for this location. For example: \"us-east1\".
12961430locLocationId :: Lens' Location (Maybe Text)
12971431locLocationId
12981432 = lens _locLocationId
@@ -1352,31 +1486,30 @@ operation =
13521486 , _oMetadata = Nothing
13531487 }
13541488
1355−-- | If the value is \`false\`, it means the operation is still in progress.
1356−-- If true, the operation is completed, and either \`error\` or
1357−-- \`response\` is available.
1489+-- | If the value is false, it means the operation is still in progress. If
1490+-- true, the operation is completed, and either error or response is
1491+-- available.
13581492oDone :: Lens' Operation (Maybe Bool)
13591493oDone = lens _oDone (\ s a -> s{_oDone = a})
13601494
1361−-- | The error result of the operation in case of failure.
1495+-- | The error result of the operation in case of failure or cancellation.
13621496oError :: Lens' Operation (Maybe Status)
13631497oError = lens _oError (\ s a -> s{_oError = a})
13641498
13651499-- | The normal response of the operation in case of success. If the original
1366−-- method returns no data on success, such as \`Delete\`, the response is
1367−-- \`google.protobuf.Empty\`. If the original method is standard
1368−-- \`Get\`\/\`Create\`\/\`Update\`, the response should be the resource.
1369−-- For other methods, the response should have the type \`XxxResponse\`,
1370−-- where \`Xxx\` is the original method name. For example, if the original
1371−-- method name is \`TakeSnapshot()\`, the inferred response type is
1372−-- \`TakeSnapshotResponse\`.
1500+-- method returns no data on success, such as Delete, the response is
1501+-- google.protobuf.Empty. If the original method is standard
1502+-- Get\/Create\/Update, the response should be the resource. For other
1503+-- methods, the response should have the type XxxResponse, where Xxx is the
1504+-- original method name. For example, if the original method name is
1505+-- TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
13731506oResponse :: Lens' Operation (Maybe OperationResponse)
13741507oResponse
13751508 = lens _oResponse (\ s a -> s{_oResponse = a})
13761509
13771510-- | The server-assigned name, which is only unique within the same service
13781511-- that originally returns it. If you use the default HTTP mapping, the
1379−-- \`name\` should have the format of \`operations\/some\/unique\/name\`.
1512+-- name should have the format of operations\/some\/unique\/name.
13801513oName :: Lens' Operation (Maybe Text)
13811514oName = lens _oName (\ s a -> s{_oName = a})
13821515
@@ -1440,7 +1573,7 @@ ziFilesCount
14401573
14411574-- | URL of the zip file to deploy from. Must be a URL to a resource in
14421575-- Google Cloud Storage in the form
1443−-- \'http(s):\/\/storage.googleapis.com\/\\\/\\\'.
1576+-- \'http(s):\/\/storage.googleapis.com\/\/\'.
14441577ziSourceURL :: Lens' ZipInfo (Maybe Text)
14451578ziSourceURL
14461579 = lens _ziSourceURL (\ s a -> s{_ziSourceURL = a})
@@ -1486,21 +1619,21 @@ urlDispatchRule =
14861619 , _udrDomain = Nothing
14871620 }
14881621
1489−-- | Pathname within the host. Must start with a \"\`\/\`\". A single
1490−-- \"\`*\`\" can be included at the end of the path. The sum of the lengths
1491−-- of the domain and path may not exceed 100 characters.
1622+-- | Pathname within the host. Must start with a \"\/\". A single \"*\" can
1623+-- be included at the end of the path. The sum of the lengths of the domain
1624+-- and path may not exceed 100 characters.
14921625udrPath :: Lens' URLDispatchRule (Maybe Text)
14931626udrPath = lens _udrPath (\ s a -> s{_udrPath = a})
14941627
14951628-- | Resource ID of a service in this application that should serve the
1496−-- matched request. The service must already exist. Example: \`default\`.
1629+-- matched request. The service must already exist. Example: default.
14971630udrService :: Lens' URLDispatchRule (Maybe Text)
14981631udrService
14991632 = lens _udrService (\ s a -> s{_udrService = a})
15001633
1501−-- | Domain name to match against. The wildcard \"\`*\`\" is supported if
1502−-- specified before a period: \"\`*.\`\". Defaults to matching all domains:
1503−-- \"\`*\`\".
1634+-- | Domain name to match against. The wildcard \"*\" is supported if
1635+-- specified before a period: \"*.\".Defaults to matching all domains:
1636+-- \"*\".
15041637udrDomain :: Lens' URLDispatchRule (Maybe Text)
15051638udrDomain
15061639 = lens _udrDomain (\ s a -> s{_udrDomain = a})
@@ -1521,7 +1654,7 @@ instance ToJSON URLDispatchRule where
15211654 ("service" .=) <$> _udrService,
15221655 ("domain" .=) <$> _udrDomain])
15231656
1524−-- | Response message for \`Versions.ListVersions\`.
1657+-- | Response message for Versions.ListVersions.
15251658--
15261659-- /See:/ 'listVersionsResponse' smart constructor.
15271660data ListVersionsResponse = ListVersionsResponse'
@@ -1605,7 +1738,7 @@ fiSha1Sum :: Lens' FileInfo (Maybe Text)
16051738fiSha1Sum
16061739 = lens _fiSha1Sum (\ s a -> s{_fiSha1Sum = a})
16071740
1608−-- | The MIME type of the file. Defaults to the value from Google Cloud
1741+-- | The MIME type of the file.Defaults to the value from Google Cloud
16091742-- Storage.
16101743fiMimeType :: Lens' FileInfo (Maybe Text)
16111744fiMimeType
@@ -1613,7 +1746,7 @@ fiMimeType
16131746
16141747-- | URL source to use to fetch this file. Must be a URL to a resource in
16151748-- Google Cloud Storage in the form
1616−-- \'http(s):\/\/storage.googleapis.com\/\\\/\\\'.
1749+-- \'http(s):\/\/storage.googleapis.com\/\/\'.
16171750fiSourceURL :: Lens' FileInfo (Maybe Text)
16181751fiSourceURL
16191752 = lens _fiSourceURL (\ s a -> s{_fiSourceURL = a})
@@ -1754,7 +1887,7 @@ asMinTotalInstances
17541887 . mapping _Coerce
17551888
17561889-- | Number of concurrent requests an automatic scaling instance can accept
1757−-- before the scheduler spawns a new instance. Defaults to a
1890+-- before the scheduler spawns a new instance.Defaults to a
17581891-- runtime-specific value.
17591892asMaxConcurrentRequests :: Lens' AutomaticScaling (Maybe Int32)
17601893asMaxConcurrentRequests
@@ -1762,10 +1895,10 @@ asMaxConcurrentRequests
17621895 (\ s a -> s{_asMaxConcurrentRequests = a})
17631896 . mapping _Coerce
17641897
1765−-- | Amount of time that the
1766−-- [Autoscaler](https:\/\/cloud.google.com\/compute\/docs\/autoscaler\/)
1767−-- should wait between changes to the number of virtual machines. Only
1768−-- applicable for VM runtimes.
1898+-- | Amount of time that the Autoscaler
1899+-- (https:\/\/cloud.google.com\/compute\/docs\/autoscaler\/) should wait
1900+-- between changes to the number of virtual machines. Only applicable for
1901+-- VM runtimes.
17691902asCoolDownPeriod :: Lens' AutomaticScaling (Maybe Text)
17701903asCoolDownPeriod
17711904 = lens _asCoolDownPeriod
@@ -1855,29 +1988,29 @@ operationMetadataV1Beta5 =
18551988 , _omvbTarget = Nothing
18561989 }
18571990
1858−-- | Timestamp that this operation was created. \'OutputOnly
1991+-- | Timestamp that this operation was created.\'OutputOnly
18591992omvbInsertTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
18601993omvbInsertTime
18611994 = lens _omvbInsertTime
18621995 (\ s a -> s{_omvbInsertTime = a})
18631996
1864−-- | User who requested this operation. \'OutputOnly
1997+-- | User who requested this operation.\'OutputOnly
18651998omvbUser :: Lens' OperationMetadataV1Beta5 (Maybe Text)
18661999omvbUser = lens _omvbUser (\ s a -> s{_omvbUser = a})
18672000
18682001-- | API method name that initiated this operation. Example:
1869−-- \`google.appengine.v1beta5.Version.CreateVersion\`. \'OutputOnly
2002+-- google.appengine.v1beta5.Version.CreateVersion.\'OutputOnly
18702003omvbMethod :: Lens' OperationMetadataV1Beta5 (Maybe Text)
18712004omvbMethod
18722005 = lens _omvbMethod (\ s a -> s{_omvbMethod = a})
18732006
1874−-- | Timestamp that this operation completed. \'OutputOnly
2007+-- | Timestamp that this operation completed.\'OutputOnly
18752008omvbEndTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
18762009omvbEndTime
18772010 = lens _omvbEndTime (\ s a -> s{_omvbEndTime = a})
18782011
18792012-- | Name of the resource that this operation is acting on. Example:
1880−-- \`apps\/myapp\/services\/default\`. \'OutputOnly
2013+-- apps\/myapp\/services\/default.\'OutputOnly
18812014omvbTarget :: Lens' OperationMetadataV1Beta5 (Maybe Text)
18822015omvbTarget
18832016 = lens _omvbTarget (\ s a -> s{_omvbTarget = a})
@@ -1902,6 +2035,64 @@ instance ToJSON OperationMetadataV1Beta5 where
19022035 ("endTime" .=) <$> _omvbEndTime,
19032036 ("target" .=) <$> _omvbTarget])
19042037
2038+-- | Volumes mounted within the app container. Only applicable for VM
2039+-- runtimes.
2040+--
2041+-- /See:/ 'volume' smart constructor.
2042+data Volume = Volume'
2043+ { _vSizeGb :: !(Maybe (Textual Double))
2044+ , _vName :: !(Maybe Text)
2045+ , _vVolumeType :: !(Maybe Text)
2046+ } deriving (Eq,Show,Data,Typeable,Generic)
2047+
2048+-- | Creates a value of 'Volume' with the minimum fields required to make a request.
2049+--
2050+-- Use one of the following lenses to modify other fields as desired:
2051+--
2052+-- * 'vSizeGb'
2053+--
2054+-- * 'vName'
2055+--
2056+-- * 'vVolumeType'
2057+volume
2058+ :: Volume
2059+volume =
2060+ Volume'
2061+ { _vSizeGb = Nothing
2062+ , _vName = Nothing
2063+ , _vVolumeType = Nothing
2064+ }
2065+
2066+-- | Volume size in gigabytes.
2067+vSizeGb :: Lens' Volume (Maybe Double)
2068+vSizeGb
2069+ = lens _vSizeGb (\ s a -> s{_vSizeGb = a}) .
2070+ mapping _Coerce
2071+
2072+-- | Unique name for the volume.
2073+vName :: Lens' Volume (Maybe Text)
2074+vName = lens _vName (\ s a -> s{_vName = a})
2075+
2076+-- | Underlying volume type, e.g. \'tmpfs\'.
2077+vVolumeType :: Lens' Volume (Maybe Text)
2078+vVolumeType
2079+ = lens _vVolumeType (\ s a -> s{_vVolumeType = a})
2080+
2081+instance FromJSON Volume where
2082+ parseJSON
2083+ = withObject "Volume"
2084+ (\ o ->
2085+ Volume' <$>
2086+ (o .:? "sizeGb") <*> (o .:? "name") <*>
2087+ (o .:? "volumeType"))
2088+
2089+instance ToJSON Volume where
2090+ toJSON Volume'{..}
2091+ = object
2092+ (catMaybes
2093+ [("sizeGb" .=) <$> _vSizeGb, ("name" .=) <$> _vName,
2094+ ("volumeType" .=) <$> _vVolumeType])
2095+
19052096-- | Uses Google Cloud Endpoints to handle requests.
19062097--
19072098-- /See:/ 'apiEndpointHandler' smart constructor.
@@ -1974,7 +2165,8 @@ instance ToJSON StatusDetailsItem where
19742165--
19752166-- /See:/ 'network' smart constructor.
19762167data Network = Network'
1977− { _nForwardedPorts :: !(Maybe [Text])
2168+ { _nSubnetworkName :: !(Maybe Text)
2169+ , _nForwardedPorts :: !(Maybe [Text])
19782170 , _nInstanceTag :: !(Maybe Text)
19792171 , _nName :: !(Maybe Text)
19802172 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -1983,6 +2175,8 @@ data Network = Network'
19832175--
19842176-- Use one of the following lenses to modify other fields as desired:
19852177--
2178+-- * 'nSubnetworkName'
2179+--
19862180-- * 'nForwardedPorts'
19872181--
19882182-- * 'nInstanceTag'
@@ -1992,11 +2186,30 @@ network
19922186 :: Network
19932187network =
19942188 Network'
1995− { _nForwardedPorts = Nothing
2189+ { _nSubnetworkName = Nothing
2190+ , _nForwardedPorts = Nothing
19962191 , _nInstanceTag = Nothing
19972192 , _nName = Nothing
19982193 }
19992194
2195+-- | Google Cloud Platform sub-network where the virtual machines are
2196+-- created. Specify the short name, not the resource path.If a subnetwork
2197+-- name is specified, a network name will also be required unless it is for
2198+-- the default network. If the network the VM instance is being created in
2199+-- is a Legacy network, then the IP address is allocated from the
2200+-- IPv4Range. If the network the VM instance is being created in is an auto
2201+-- Subnet Mode Network, then only network name should be specified (not the
2202+-- subnetwork_name) and the IP address is created from the IPCidrRange of
2203+-- the subnetwork that exists in that zone for that network. If the network
2204+-- the VM instance is being created in is a custom Subnet Mode Network,
2205+-- then the subnetwork_name must be specified and the IP address is created
2206+-- from the IPCidrRange of the subnetwork.If specified, the subnetwork must
2207+-- exist in the same region as the Flex app.
2208+nSubnetworkName :: Lens' Network (Maybe Text)
2209+nSubnetworkName
2210+ = lens _nSubnetworkName
2211+ (\ s a -> s{_nSubnetworkName = a})
2212+
20002213-- | List of ports, or port pairs, to forward from the virtual machine to the
20012214-- application container.
20022215nForwardedPorts :: Lens' Network [Text]
@@ -2012,7 +2225,7 @@ nInstanceTag
20122225 = lens _nInstanceTag (\ s a -> s{_nInstanceTag = a})
20132226
20142227-- | Google Cloud Platform network where the virtual machines are created.
2015−-- Specify the short name, not the resource path. Defaults to \`default\`.
2228+-- Specify the short name, not the resource path.Defaults to default.
20162229nName :: Lens' Network (Maybe Text)
20172230nName = lens _nName (\ s a -> s{_nName = a})
20182231
@@ -2021,38 +2234,56 @@ instance FromJSON Network where
20212234 = withObject "Network"
20222235 (\ o ->
20232236 Network' <$>
2024− (o .:? "forwardedPorts" .!= mempty) <*>
2025− (o .:? "instanceTag")
2237+ (o .:? "subnetworkName") <*>
2238+ (o .:? "forwardedPorts" .!= mempty)
2239+ <*> (o .:? "instanceTag")
20262240 <*> (o .:? "name"))
20272241
20282242instance ToJSON Network where
20292243 toJSON Network'{..}
20302244 = object
20312245 (catMaybes
2032− [("forwardedPorts" .=) <$> _nForwardedPorts,
2246+ [("subnetworkName" .=) <$> _nSubnetworkName,
2247+ ("forwardedPorts" .=) <$> _nForwardedPorts,
20332248 ("instanceTag" .=) <$> _nInstanceTag,
20342249 ("name" .=) <$> _nName])
20352250
2036−-- | Request message for \`Instances.DebugInstance\`.
2251+-- | Request message for Instances.DebugInstance.
20372252--
20382253-- /See:/ 'debugInstanceRequest' smart constructor.
2039−data DebugInstanceRequest =
2040− DebugInstanceRequest'
2041− deriving (Eq,Show,Data,Typeable,Generic)
2254+newtype DebugInstanceRequest = DebugInstanceRequest'
2255+ { _dirSSHKey :: Maybe Text
2256+ } deriving (Eq,Show,Data,Typeable,Generic)
20422257
20432258-- | Creates a value of 'DebugInstanceRequest' with the minimum fields required to make a request.
20442259--
2260+-- Use one of the following lenses to modify other fields as desired:
2261+--
2262+-- * 'dirSSHKey'
20452263debugInstanceRequest
20462264 :: DebugInstanceRequest
2047−debugInstanceRequest = DebugInstanceRequest'
2265+debugInstanceRequest =
2266+ DebugInstanceRequest'
2267+ { _dirSSHKey = Nothing
2268+ }
2269+
2270+-- | Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa
2271+-- [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh
2272+-- {\"userName\":\"[USERNAME]\",\"expireOn\":\"[EXPIRE_TIME]\"}For more
2273+-- information, see Adding and Removing SSH Keys
2274+-- (https:\/\/cloud.google.com\/compute\/docs\/instances\/adding-removing-ssh-keys).
2275+dirSSHKey :: Lens' DebugInstanceRequest (Maybe Text)
2276+dirSSHKey
2277+ = lens _dirSSHKey (\ s a -> s{_dirSSHKey = a})
20482278
20492279instance FromJSON DebugInstanceRequest where
20502280 parseJSON
20512281 = withObject "DebugInstanceRequest"
2052− (\ o -> pure DebugInstanceRequest')
2282+ (\ o -> DebugInstanceRequest' <$> (o .:? "sshKey"))
20532283
20542284instance ToJSON DebugInstanceRequest where
2055− toJSON = const emptyObject
2285+ toJSON DebugInstanceRequest'{..}
2286+ = object (catMaybes [("sshKey" .=) <$> _dirSSHKey])
20562287
20572288-- | HTTP headers to use for all responses from these URLs.
20582289--
@@ -2096,6 +2327,7 @@ instance ToJSON StaticFilesHandlerHTTPHeaders where
20962327data Resources = Resources'
20972328 { _rMemoryGb :: !(Maybe (Textual Double))
20982329 , _rDiskGb :: !(Maybe (Textual Double))
2330+ , _rVolumes :: !(Maybe [Volume])
20992331 , _rCPU :: !(Maybe (Textual Double))
21002332 } deriving (Eq,Show,Data,Typeable,Generic)
21012333
@@ -2107,6 +2339,8 @@ data Resources = Resources'
21072339--
21082340-- * 'rDiskGb'
21092341--
2342+-- * 'rVolumes'
2343+--
21102344-- * 'rCPU'
21112345resources
21122346 :: Resources
@@ -2114,6 +2348,7 @@ resources =
21142348 Resources'
21152349 { _rMemoryGb = Nothing
21162350 , _rDiskGb = Nothing
2351+ , _rVolumes = Nothing
21172352 , _rCPU = Nothing
21182353 }
21192354
@@ -2129,6 +2364,13 @@ rDiskGb
21292364 = lens _rDiskGb (\ s a -> s{_rDiskGb = a}) .
21302365 mapping _Coerce
21312366
2367+-- | User specified volumes.
2368+rVolumes :: Lens' Resources [Volume]
2369+rVolumes
2370+ = lens _rVolumes (\ s a -> s{_rVolumes = a}) .
2371+ _Default
2372+ . _Coerce
2373+
21322374-- | Number of CPU cores needed.
21332375rCPU :: Lens' Resources (Maybe Double)
21342376rCPU
@@ -2141,14 +2383,16 @@ instance FromJSON Resources where
21412383 (\ o ->
21422384 Resources' <$>
21432385 (o .:? "memoryGb") <*> (o .:? "diskGb") <*>
2144− (o .:? "cpu"))
2386+ (o .:? "volumes" .!= mempty)
2387+ <*> (o .:? "cpu"))
21452388
21462389instance ToJSON Resources where
21472390 toJSON Resources'{..}
21482391 = object
21492392 (catMaybes
21502393 [("memoryGb" .=) <$> _rMemoryGb,
2151− ("diskGb" .=) <$> _rDiskGb, ("cpu" .=) <$> _rCPU])
2394+ ("diskGb" .=) <$> _rDiskGb,
2395+ ("volumes" .=) <$> _rVolumes, ("cpu" .=) <$> _rCPU])
21522396
21532397-- | Manifest of the files stored in Google Cloud Storage that are included
21542398-- as part of this version. All files must be readable using the
@@ -2300,9 +2544,9 @@ manualScaling =
23002544 }
23012545
23022546-- | Number of instances to assign to the service at the start. This number
2303−-- can later be altered by using the [Modules
2304−-- API](https:\/\/cloud.google.com\/appengine\/docs\/python\/modules\/functions)
2305−-- \`set_num_instances()\` function.
2547+-- can later be altered by using the Modules API
2548+-- (https:\/\/cloud.google.com\/appengine\/docs\/python\/modules\/functions)
2549+-- set_num_instances() function.
23062550msInstances :: Lens' ManualScaling (Maybe Int32)
23072551msInstances
23082552 = lens _msInstances (\ s a -> s{_msInstances = a}) .
@@ -2376,17 +2620,21 @@ instance ToJSON BasicScaling where
23762620--
23772621-- /See:/ 'operationMetadataV1' smart constructor.
23782622data OperationMetadataV1 = OperationMetadataV1'
2379− { _omvInsertTime :: !(Maybe Text)
2380− , _omvUser :: !(Maybe Text)
2381− , _omvMethod :: !(Maybe Text)
2382− , _omvEndTime :: !(Maybe Text)
2383− , _omvTarget :: !(Maybe Text)
2623+ { _omvEphemeralMessage :: !(Maybe Text)
2624+ , _omvInsertTime :: !(Maybe Text)
2625+ , _omvUser :: !(Maybe Text)
2626+ , _omvMethod :: !(Maybe Text)
2627+ , _omvEndTime :: !(Maybe Text)
2628+ , _omvWarning :: !(Maybe [Text])
2629+ , _omvTarget :: !(Maybe Text)
23842630 } deriving (Eq,Show,Data,Typeable,Generic)
23852631
23862632-- | Creates a value of 'OperationMetadataV1' with the minimum fields required to make a request.
23872633--
23882634-- Use one of the following lenses to modify other fields as desired:
23892635--
2636+-- * 'omvEphemeralMessage'
2637+--
23902638-- * 'omvInsertTime'
23912639--
23922640-- * 'omvUser'
@@ -2395,41 +2643,59 @@ data OperationMetadataV1 = OperationMetadataV1'
23952643--
23962644-- * 'omvEndTime'
23972645--
2646+-- * 'omvWarning'
2647+--
23982648-- * 'omvTarget'
23992649operationMetadataV1
24002650 :: OperationMetadataV1
24012651operationMetadataV1 =
24022652 OperationMetadataV1'
2403− { _omvInsertTime = Nothing
2653+ { _omvEphemeralMessage = Nothing
2654+ , _omvInsertTime = Nothing
24042655 , _omvUser = Nothing
24052656 , _omvMethod = Nothing
24062657 , _omvEndTime = Nothing
2658+ , _omvWarning = Nothing
24072659 , _omvTarget = Nothing
24082660 }
24092661
2410−-- | Time that this operation was created. \'OutputOnly
2662+-- | Ephemeral message that may change every time the operation is polled.
2663+-- \'OutputOnly
2664+omvEphemeralMessage :: Lens' OperationMetadataV1 (Maybe Text)
2665+omvEphemeralMessage
2666+ = lens _omvEphemeralMessage
2667+ (\ s a -> s{_omvEphemeralMessage = a})
2668+
2669+-- | Time that this operation was created.\'OutputOnly
24112670omvInsertTime :: Lens' OperationMetadataV1 (Maybe Text)
24122671omvInsertTime
24132672 = lens _omvInsertTime
24142673 (\ s a -> s{_omvInsertTime = a})
24152674
2416−-- | User who requested this operation. \'OutputOnly
2675+-- | User who requested this operation.\'OutputOnly
24172676omvUser :: Lens' OperationMetadataV1 (Maybe Text)
24182677omvUser = lens _omvUser (\ s a -> s{_omvUser = a})
24192678
24202679-- | API method that initiated this operation. Example:
2421−-- \`google.appengine.v1.Versions.CreateVersion\`. \'OutputOnly
2680+-- google.appengine.v1.Versions.CreateVersion.\'OutputOnly
24222681omvMethod :: Lens' OperationMetadataV1 (Maybe Text)
24232682omvMethod
24242683 = lens _omvMethod (\ s a -> s{_omvMethod = a})
24252684
2426−-- | Time that this operation completed. \'OutputOnly
2685+-- | Time that this operation completed.\'OutputOnly
24272686omvEndTime :: Lens' OperationMetadataV1 (Maybe Text)
24282687omvEndTime
24292688 = lens _omvEndTime (\ s a -> s{_omvEndTime = a})
24302689
2690+-- | Durable messages that persist on every operation poll. \'OutputOnly
2691+omvWarning :: Lens' OperationMetadataV1 [Text]
2692+omvWarning
2693+ = lens _omvWarning (\ s a -> s{_omvWarning = a}) .
2694+ _Default
2695+ . _Coerce
2696+
24312697-- | Name of the resource that this operation is acting on. Example:
2432−-- \`apps\/myapp\/services\/default\`. \'OutputOnly
2698+-- apps\/myapp\/services\/default.\'OutputOnly
24332699omvTarget :: Lens' OperationMetadataV1 (Maybe Text)
24342700omvTarget
24352701 = lens _omvTarget (\ s a -> s{_omvTarget = a})
@@ -2439,19 +2705,23 @@ instance FromJSON OperationMetadataV1 where
24392705 = withObject "OperationMetadataV1"
24402706 (\ o ->
24412707 OperationMetadataV1' <$>
2442− (o .:? "insertTime") <*> (o .:? "user") <*>
2443− (o .:? "method")
2708+ (o .:? "ephemeralMessage") <*> (o .:? "insertTime")
2709+ <*> (o .:? "user")
2710+ <*> (o .:? "method")
24442711 <*> (o .:? "endTime")
2712+ <*> (o .:? "warning" .!= mempty)
24452713 <*> (o .:? "target"))
24462714
24472715instance ToJSON OperationMetadataV1 where
24482716 toJSON OperationMetadataV1'{..}
24492717 = object
24502718 (catMaybes
2451− [("insertTime" .=) <$> _omvInsertTime,
2719+ [("ephemeralMessage" .=) <$> _omvEphemeralMessage,
2720+ ("insertTime" .=) <$> _omvInsertTime,
24522721 ("user" .=) <$> _omvUser,
24532722 ("method" .=) <$> _omvMethod,
24542723 ("endTime" .=) <$> _omvEndTime,
2724+ ("warning" .=) <$> _omvWarning,
24552725 ("target" .=) <$> _omvTarget])
24562726
24572727-- | A Version resource is a specific set of source code and configuration
@@ -2459,322 +2729,336 @@ instance ToJSON OperationMetadataV1 where
24592729--
24602730-- /See:/ 'version' smart constructor.
24612731data Version = Version'
2462− { _vRuntime :: !(Maybe Text)
2463− , _vNobuildFilesRegex :: !(Maybe Text)
2464− , _vInstanceClass :: !(Maybe Text)
2465− , _vHealthCheck :: !(Maybe HealthCheck)
2466− , _vEnv :: !(Maybe Text)
2467− , _vDefaultExpiration :: !(Maybe Text)
2468− , _vAutomaticScaling :: !(Maybe AutomaticScaling)
2469− , _vErrorHandlers :: !(Maybe [ErrorHandler])
2470− , _vCreatedBy :: !(Maybe Text)
2471− , _vVM :: !(Maybe Bool)
2472− , _vHandlers :: !(Maybe [URLMap])
2473− , _vInboundServices :: !(Maybe [Text])
2474− , _vNetwork :: !(Maybe Network)
2475− , _vResources :: !(Maybe Resources)
2476− , _vName :: !(Maybe Text)
2477− , _vThreadsafe :: !(Maybe Bool)
2478− , _vBetaSettings :: !(Maybe VersionBetaSettings)
2479− , _vBasicScaling :: !(Maybe BasicScaling)
2480− , _vManualScaling :: !(Maybe ManualScaling)
2481− , _vAPIConfig :: !(Maybe APIConfigHandler)
2482− , _vId :: !(Maybe Text)
2483− , _vEnvVariables :: !(Maybe VersionEnvVariables)
2484− , _vServingStatus :: !(Maybe Text)
2485− , _vDiskUsageBytes :: !(Maybe (Textual Int64))
2486− , _vCreateTime :: !(Maybe Text)
2487− , _vLibraries :: !(Maybe [Library])
2488− , _vVersionURL :: !(Maybe Text)
2489− , _vDeployment :: !(Maybe Deployment)
2732+ { _verRuntime :: !(Maybe Text)
2733+ , _verNobuildFilesRegex :: !(Maybe Text)
2734+ , _verInstanceClass :: !(Maybe Text)
2735+ , _verHealthCheck :: !(Maybe HealthCheck)
2736+ , _verEndpointsAPIService :: !(Maybe EndpointsAPIService)
2737+ , _verEnv :: !(Maybe Text)
2738+ , _verDefaultExpiration :: !(Maybe Text)
2739+ , _verAutomaticScaling :: !(Maybe AutomaticScaling)
2740+ , _verErrorHandlers :: !(Maybe [ErrorHandler])
2741+ , _verCreatedBy :: !(Maybe Text)
2742+ , _verVM :: !(Maybe Bool)
2743+ , _verHandlers :: !(Maybe [URLMap])
2744+ , _verInboundServices :: !(Maybe [Text])
2745+ , _verNetwork :: !(Maybe Network)
2746+ , _verResources :: !(Maybe Resources)
2747+ , _verName :: !(Maybe Text)
2748+ , _verThreadsafe :: !(Maybe Bool)
2749+ , _verBetaSettings :: !(Maybe VersionBetaSettings)
2750+ , _verBasicScaling :: !(Maybe BasicScaling)
2751+ , _verManualScaling :: !(Maybe ManualScaling)
2752+ , _verAPIConfig :: !(Maybe APIConfigHandler)
2753+ , _verId :: !(Maybe Text)
2754+ , _verEnvVariables :: !(Maybe VersionEnvVariables)
2755+ , _verServingStatus :: !(Maybe Text)
2756+ , _verDiskUsageBytes :: !(Maybe (Textual Int64))
2757+ , _verCreateTime :: !(Maybe Text)
2758+ , _verLibraries :: !(Maybe [Library])
2759+ , _verVersionURL :: !(Maybe Text)
2760+ , _verDeployment :: !(Maybe Deployment)
24902761 } deriving (Eq,Show,Data,Typeable,Generic)
24912762
24922763-- | Creates a value of 'Version' with the minimum fields required to make a request.
24932764--
24942765-- Use one of the following lenses to modify other fields as desired:
24952766--
2496−-- * 'vRuntime'
2767+-- * 'verRuntime'
24972768--
2498−-- * 'vNobuildFilesRegex'
2769+-- * 'verNobuildFilesRegex'
24992770--
2500−-- * 'vInstanceClass'
2771+-- * 'verInstanceClass'
25012772--
2502−-- * 'vHealthCheck'
2773+-- * 'verHealthCheck'
25032774--
2504−-- * 'vEnv'
2775+-- * 'verEndpointsAPIService'
25052776--
2506−-- * 'vDefaultExpiration'
2777+-- * 'verEnv'
25072778--
2508−-- * 'vAutomaticScaling'
2779+-- * 'verDefaultExpiration'
25092780--
2510−-- * 'vErrorHandlers'
2781+-- * 'verAutomaticScaling'
25112782--
2512−-- * 'vCreatedBy'
2783+-- * 'verErrorHandlers'
25132784--
2514−-- * 'vVM'
2785+-- * 'verCreatedBy'
25152786--
2516−-- * 'vHandlers'
2787+-- * 'verVM'
25172788--
2518−-- * 'vInboundServices'
2789+-- * 'verHandlers'
25192790--
2520−-- * 'vNetwork'
2791+-- * 'verInboundServices'
25212792--
2522−-- * 'vResources'
2793+-- * 'verNetwork'
25232794--
2524−-- * 'vName'
2795+-- * 'verResources'
2796+--
2797+-- * 'verName'
25252798--
2526−-- * 'vThreadsafe'
2799+-- * 'verThreadsafe'
25272800--
2528−-- * 'vBetaSettings'
2801+-- * 'verBetaSettings'
25292802--
2530−-- * 'vBasicScaling'
2803+-- * 'verBasicScaling'
25312804--
2532−-- * 'vManualScaling'
2805+-- * 'verManualScaling'
25332806--
2534−-- * 'vAPIConfig'
2807+-- * 'verAPIConfig'
25352808--
2536−-- * 'vId'
2809+-- * 'verId'
25372810--
2538−-- * 'vEnvVariables'
2811+-- * 'verEnvVariables'
25392812--
2540−-- * 'vServingStatus'
2813+-- * 'verServingStatus'
25412814--
2542−-- * 'vDiskUsageBytes'
2815+-- * 'verDiskUsageBytes'
25432816--
2544−-- * 'vCreateTime'
2817+-- * 'verCreateTime'
25452818--
2546−-- * 'vLibraries'
2819+-- * 'verLibraries'
25472820--
2548−-- * 'vVersionURL'
2821+-- * 'verVersionURL'
25492822--
2550−-- * 'vDeployment'
2823+-- * 'verDeployment'
25512824version
25522825 :: Version
25532826version =
25542827 Version'
2555− { _vRuntime = Nothing
2556− , _vNobuildFilesRegex = Nothing
2557− , _vInstanceClass = Nothing
2558− , _vHealthCheck = Nothing
2559− , _vEnv = Nothing
2560− , _vDefaultExpiration = Nothing
2561− , _vAutomaticScaling = Nothing
2562− , _vErrorHandlers = Nothing
2563− , _vCreatedBy = Nothing
2564− , _vVM = Nothing
2565− , _vHandlers = Nothing
2566− , _vInboundServices = Nothing
2567− , _vNetwork = Nothing
2568− , _vResources = Nothing
2569− , _vName = Nothing
2570− , _vThreadsafe = Nothing
2571− , _vBetaSettings = Nothing
2572− , _vBasicScaling = Nothing
2573− , _vManualScaling = Nothing
2574− , _vAPIConfig = Nothing
2575− , _vId = Nothing
2576− , _vEnvVariables = Nothing
2577− , _vServingStatus = Nothing
2578− , _vDiskUsageBytes = Nothing
2579− , _vCreateTime = Nothing
2580− , _vLibraries = Nothing
2581− , _vVersionURL = Nothing
2582− , _vDeployment = Nothing
2828+ { _verRuntime = Nothing
2829+ , _verNobuildFilesRegex = Nothing
2830+ , _verInstanceClass = Nothing
2831+ , _verHealthCheck = Nothing
2832+ , _verEndpointsAPIService = Nothing
2833+ , _verEnv = Nothing
2834+ , _verDefaultExpiration = Nothing
2835+ , _verAutomaticScaling = Nothing
2836+ , _verErrorHandlers = Nothing
2837+ , _verCreatedBy = Nothing
2838+ , _verVM = Nothing
2839+ , _verHandlers = Nothing
2840+ , _verInboundServices = Nothing
2841+ , _verNetwork = Nothing
2842+ , _verResources = Nothing
2843+ , _verName = Nothing
2844+ , _verThreadsafe = Nothing
2845+ , _verBetaSettings = Nothing
2846+ , _verBasicScaling = Nothing
2847+ , _verManualScaling = Nothing
2848+ , _verAPIConfig = Nothing
2849+ , _verId = Nothing
2850+ , _verEnvVariables = Nothing
2851+ , _verServingStatus = Nothing
2852+ , _verDiskUsageBytes = Nothing
2853+ , _verCreateTime = Nothing
2854+ , _verLibraries = Nothing
2855+ , _verVersionURL = Nothing
2856+ , _verDeployment = Nothing
25832857 }
25842858
2585−-- | Desired runtime. Example: \`python27\`.
2586−vRuntime :: Lens' Version (Maybe Text)
2587−vRuntime = lens _vRuntime (\ s a -> s{_vRuntime = a})
2859+-- | Desired runtime. Example: python27.
2860+verRuntime :: Lens' Version (Maybe Text)
2861+verRuntime
2862+ = lens _verRuntime (\ s a -> s{_verRuntime = a})
25882863
25892864-- | Files that match this pattern will not be built into this version. Only
2590−-- applicable for Go runtimes. Only returned in \`GET\` requests if
2591−-- \`view=FULL\` is set.
2592−vNobuildFilesRegex :: Lens' Version (Maybe Text)
2593−vNobuildFilesRegex
2594− = lens _vNobuildFilesRegex
2595− (\ s a -> s{_vNobuildFilesRegex = a})
2596−
2597−-- | Instance class that is used to run this version. Valid values are: *
2598−-- AutomaticScaling: \`F1\`, \`F2\`, \`F4\`, \`F4_1G\` * ManualScaling or
2599−-- BasicScaling: \`B1\`, \`B2\`, \`B4\`, \`B8\`, \`B4_1G\` Defaults to
2600−-- \`F1\` for AutomaticScaling and \`B1\` for ManualScaling or
2601−-- BasicScaling.
2602−vInstanceClass :: Lens' Version (Maybe Text)
2603−vInstanceClass
2604− = lens _vInstanceClass
2605− (\ s a -> s{_vInstanceClass = a})
2865+-- applicable for Go runtimes.Only returned in GET requests if view=FULL is
2866+-- set.
2867+verNobuildFilesRegex :: Lens' Version (Maybe Text)
2868+verNobuildFilesRegex
2869+ = lens _verNobuildFilesRegex
2870+ (\ s a -> s{_verNobuildFilesRegex = a})
2871+
2872+-- | Instance class that is used to run this version. Valid values are:
2873+-- AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1,
2874+-- B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for
2875+-- ManualScaling or BasicScaling.
2876+verInstanceClass :: Lens' Version (Maybe Text)
2877+verInstanceClass
2878+ = lens _verInstanceClass
2879+ (\ s a -> s{_verInstanceClass = a})
26062880
26072881-- | Configures health checking for VM instances. Unhealthy instances are
26082882-- stopped and replaced with new instances. Only applicable for VM
2609−-- runtimes. Only returned in \`GET\` requests if \`view=FULL\` is set.
2610−vHealthCheck :: Lens' Version (Maybe HealthCheck)
2611−vHealthCheck
2612− = lens _vHealthCheck (\ s a -> s{_vHealthCheck = a})
2613−
2614−-- | App Engine execution environment for this version. Defaults to
2615−-- \`standard\`.
2616−vEnv :: Lens' Version (Maybe Text)
2617−vEnv = lens _vEnv (\ s a -> s{_vEnv = a})
2883+-- runtimes.Only returned in GET requests if view=FULL is set.
2884+verHealthCheck :: Lens' Version (Maybe HealthCheck)
2885+verHealthCheck
2886+ = lens _verHealthCheck
2887+ (\ s a -> s{_verHealthCheck = a})
2888+
2889+-- | Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud
2890+-- Endpoints Extensible Service Proxy will be provided to serve the API
2891+-- implemented by the app.
2892+verEndpointsAPIService :: Lens' Version (Maybe EndpointsAPIService)
2893+verEndpointsAPIService
2894+ = lens _verEndpointsAPIService
2895+ (\ s a -> s{_verEndpointsAPIService = a})
2896+
2897+-- | App Engine execution environment for this version.Defaults to standard.
2898+verEnv :: Lens' Version (Maybe Text)
2899+verEnv = lens _verEnv (\ s a -> s{_verEnv = a})
26182900
26192901-- | Duration that static files should be cached by web proxies and browsers.
2620−-- Only applicable if the corresponding
2621−-- [StaticFilesHandler](https:\/\/cloud.google.com\/appengine\/docs\/admin-api\/reference\/rest\/v1\/apps.services.versions#staticfileshandler)
2622−-- does not specify its own expiration time. Only returned in \`GET\`
2623−-- requests if \`view=FULL\` is set.
2624−vDefaultExpiration :: Lens' Version (Maybe Text)
2625−vDefaultExpiration
2626− = lens _vDefaultExpiration
2627− (\ s a -> s{_vDefaultExpiration = a})
2902+-- Only applicable if the corresponding StaticFilesHandler
2903+-- (https:\/\/cloud.google.com\/appengine\/docs\/admin-api\/reference\/rest\/v1\/apps.services.versions#staticfileshandler)
2904+-- does not specify its own expiration time.Only returned in GET requests
2905+-- if view=FULL is set.
2906+verDefaultExpiration :: Lens' Version (Maybe Text)
2907+verDefaultExpiration
2908+ = lens _verDefaultExpiration
2909+ (\ s a -> s{_verDefaultExpiration = a})
26282910
26292911-- | Automatic scaling is based on request rate, response latencies, and
26302912-- other application metrics.
2631−vAutomaticScaling :: Lens' Version (Maybe AutomaticScaling)
2632−vAutomaticScaling
2633− = lens _vAutomaticScaling
2634− (\ s a -> s{_vAutomaticScaling = a})
2635−
2636−-- | Custom static error pages. Limited to 10KB per page. Only returned in
2637−-- \`GET\` requests if \`view=FULL\` is set.
2638−vErrorHandlers :: Lens' Version [ErrorHandler]
2639−vErrorHandlers
2640− = lens _vErrorHandlers
2641− (\ s a -> s{_vErrorHandlers = a})
2913+verAutomaticScaling :: Lens' Version (Maybe AutomaticScaling)
2914+verAutomaticScaling
2915+ = lens _verAutomaticScaling
2916+ (\ s a -> s{_verAutomaticScaling = a})
2917+
2918+-- | Custom static error pages. Limited to 10KB per page.Only returned in GET
2919+-- requests if view=FULL is set.
2920+verErrorHandlers :: Lens' Version [ErrorHandler]
2921+verErrorHandlers
2922+ = lens _verErrorHandlers
2923+ (\ s a -> s{_verErrorHandlers = a})
26422924 . _Default
26432925 . _Coerce
26442926
2645−-- | Email address of the user who created this version. \'OutputOnly
2646−vCreatedBy :: Lens' Version (Maybe Text)
2647−vCreatedBy
2648− = lens _vCreatedBy (\ s a -> s{_vCreatedBy = a})
2927+-- | Email address of the user who created this version.\'OutputOnly
2928+verCreatedBy :: Lens' Version (Maybe Text)
2929+verCreatedBy
2930+ = lens _verCreatedBy (\ s a -> s{_verCreatedBy = a})
26492931
26502932-- | Whether to deploy this version in a container on a virtual machine.
2651−vVM :: Lens' Version (Maybe Bool)
2652−vVM = lens _vVM (\ s a -> s{_vVM = a})
2933+verVM :: Lens' Version (Maybe Bool)
2934+verVM = lens _verVM (\ s a -> s{_verVM = a})
26532935
26542936-- | An ordered list of URL-matching patterns that should be applied to
26552937-- incoming requests. The first matching URL handles the request and other
2656−-- request handlers are not attempted. Only returned in \`GET\` requests if
2657−-- \`view=FULL\` is set.
2658−vHandlers :: Lens' Version [URLMap]
2659−vHandlers
2660− = lens _vHandlers (\ s a -> s{_vHandlers = a}) .
2938+-- request handlers are not attempted.Only returned in GET requests if
2939+-- view=FULL is set.
2940+verHandlers :: Lens' Version [URLMap]
2941+verHandlers
2942+ = lens _verHandlers (\ s a -> s{_verHandlers = a}) .
26612943 _Default
26622944 . _Coerce
26632945
26642946-- | Before an application can receive email or XMPP messages, the
26652947-- application must be configured to enable the service.
2666−vInboundServices :: Lens' Version [Text]
2667−vInboundServices
2668− = lens _vInboundServices
2669− (\ s a -> s{_vInboundServices = a})
2948+verInboundServices :: Lens' Version [Text]
2949+verInboundServices
2950+ = lens _verInboundServices
2951+ (\ s a -> s{_verInboundServices = a})
26702952 . _Default
26712953 . _Coerce
26722954
26732955-- | Extra network settings. Only applicable for VM runtimes.
2674−vNetwork :: Lens' Version (Maybe Network)
2675−vNetwork = lens _vNetwork (\ s a -> s{_vNetwork = a})
2956+verNetwork :: Lens' Version (Maybe Network)
2957+verNetwork
2958+ = lens _verNetwork (\ s a -> s{_verNetwork = a})
26762959
26772960-- | Machine resources for this version. Only applicable for VM runtimes.
2678−vResources :: Lens' Version (Maybe Resources)
2679−vResources
2680− = lens _vResources (\ s a -> s{_vResources = a})
2961+verResources :: Lens' Version (Maybe Resources)
2962+verResources
2963+ = lens _verResources (\ s a -> s{_verResources = a})
26812964
26822965-- | Full path to the Version resource in the API. Example:
2683−-- \`apps\/myapp\/services\/default\/versions\/v1\`. \'OutputOnly
2684−vName :: Lens' Version (Maybe Text)
2685−vName = lens _vName (\ s a -> s{_vName = a})
2966+-- apps\/myapp\/services\/default\/versions\/v1.\'OutputOnly
2967+verName :: Lens' Version (Maybe Text)
2968+verName = lens _verName (\ s a -> s{_verName = a})
26862969
26872970-- | Whether multiple requests can be dispatched to this version at once.
2688−vThreadsafe :: Lens' Version (Maybe Bool)
2689−vThreadsafe
2690− = lens _vThreadsafe (\ s a -> s{_vThreadsafe = a})
2971+verThreadsafe :: Lens' Version (Maybe Bool)
2972+verThreadsafe
2973+ = lens _verThreadsafe
2974+ (\ s a -> s{_verThreadsafe = a})
26912975
26922976-- | Metadata settings that are supplied to this version to enable beta
26932977-- runtime features.
2694−vBetaSettings :: Lens' Version (Maybe VersionBetaSettings)
2695−vBetaSettings
2696− = lens _vBetaSettings
2697− (\ s a -> s{_vBetaSettings = a})
2978+verBetaSettings :: Lens' Version (Maybe VersionBetaSettings)
2979+verBetaSettings
2980+ = lens _verBetaSettings
2981+ (\ s a -> s{_verBetaSettings = a})
26982982
26992983-- | A service with basic scaling will create an instance when the
27002984-- application receives a request. The instance will be turned down when
27012985-- the app becomes idle. Basic scaling is ideal for work that is
27022986-- intermittent or driven by user activity.
2703−vBasicScaling :: Lens' Version (Maybe BasicScaling)
2704−vBasicScaling
2705− = lens _vBasicScaling
2706− (\ s a -> s{_vBasicScaling = a})
2987+verBasicScaling :: Lens' Version (Maybe BasicScaling)
2988+verBasicScaling
2989+ = lens _verBasicScaling
2990+ (\ s a -> s{_verBasicScaling = a})
27072991
27082992-- | A service with manual scaling runs continuously, allowing you to perform
27092993-- complex initialization and rely on the state of its memory over time.
2710−vManualScaling :: Lens' Version (Maybe ManualScaling)
2711−vManualScaling
2712− = lens _vManualScaling
2713− (\ s a -> s{_vManualScaling = a})
2714−
2715−-- | Serving configuration for [Google Cloud
2716−-- Endpoints](https:\/\/cloud.google.com\/appengine\/docs\/python\/endpoints\/).
2717−-- Only returned in \`GET\` requests if \`view=FULL\` is set.
2718−vAPIConfig :: Lens' Version (Maybe APIConfigHandler)
2719−vAPIConfig
2720− = lens _vAPIConfig (\ s a -> s{_vAPIConfig = a})
2721−
2722−-- | Relative name of the version within the service. Example: \`v1\`.
2723−-- Version names can contain only lowercase letters, numbers, or hyphens.
2724−-- Reserved names: \"default\", \"latest\", and any name with the prefix
2725−-- \"ah-\".
2726−vId :: Lens' Version (Maybe Text)
2727−vId = lens _vId (\ s a -> s{_vId = a})
2728−
2729−-- | Environment variables available to the application. Only returned in
2730−-- \`GET\` requests if \`view=FULL\` is set.
2731−vEnvVariables :: Lens' Version (Maybe VersionEnvVariables)
2732−vEnvVariables
2733− = lens _vEnvVariables
2734− (\ s a -> s{_vEnvVariables = a})
2735−
2736−-- | Current serving status of this version. Only the versions with a
2737−-- \`SERVING\` status create instances and can be billed.
2738−-- \`SERVING_STATUS_UNSPECIFIED\` is an invalid value. Defaults to
2739−-- \`SERVING\`.
2740−vServingStatus :: Lens' Version (Maybe Text)
2741−vServingStatus
2742− = lens _vServingStatus
2743− (\ s a -> s{_vServingStatus = a})
2994+verManualScaling :: Lens' Version (Maybe ManualScaling)
2995+verManualScaling
2996+ = lens _verManualScaling
2997+ (\ s a -> s{_verManualScaling = a})
2998+
2999+-- | Serving configuration for Google Cloud Endpoints
3000+-- (https:\/\/cloud.google.com\/appengine\/docs\/python\/endpoints\/).Only
3001+-- returned in GET requests if view=FULL is set.
3002+verAPIConfig :: Lens' Version (Maybe APIConfigHandler)
3003+verAPIConfig
3004+ = lens _verAPIConfig (\ s a -> s{_verAPIConfig = a})
3005+
3006+-- | Relative name of the version within the service. Example: v1. Version
3007+-- names can contain only lowercase letters, numbers, or hyphens. Reserved
3008+-- names: \"default\", \"latest\", and any name with the prefix \"ah-\".
3009+verId :: Lens' Version (Maybe Text)
3010+verId = lens _verId (\ s a -> s{_verId = a})
3011+
3012+-- | Environment variables available to the application.Only returned in GET
3013+-- requests if view=FULL is set.
3014+verEnvVariables :: Lens' Version (Maybe VersionEnvVariables)
3015+verEnvVariables
3016+ = lens _verEnvVariables
3017+ (\ s a -> s{_verEnvVariables = a})
3018+
3019+-- | Current serving status of this version. Only the versions with a SERVING
3020+-- status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is
3021+-- an invalid value. Defaults to SERVING.
3022+verServingStatus :: Lens' Version (Maybe Text)
3023+verServingStatus
3024+ = lens _verServingStatus
3025+ (\ s a -> s{_verServingStatus = a})
27443026
27453027-- | Total size in bytes of all the files that are included in this version
2746−-- and curerntly hosted on the App Engine disk. \'OutputOnly
2747−vDiskUsageBytes :: Lens' Version (Maybe Int64)
2748−vDiskUsageBytes
2749− = lens _vDiskUsageBytes
2750− (\ s a -> s{_vDiskUsageBytes = a})
3028+-- and curerntly hosted on the App Engine disk.\'OutputOnly
3029+verDiskUsageBytes :: Lens' Version (Maybe Int64)
3030+verDiskUsageBytes
3031+ = lens _verDiskUsageBytes
3032+ (\ s a -> s{_verDiskUsageBytes = a})
27513033 . mapping _Coerce
27523034
2753−-- | Time that this version was created. \'OutputOnly
2754−vCreateTime :: Lens' Version (Maybe Text)
2755−vCreateTime
2756− = lens _vCreateTime (\ s a -> s{_vCreateTime = a})
3035+-- | Time that this version was created.\'OutputOnly
3036+verCreateTime :: Lens' Version (Maybe Text)
3037+verCreateTime
3038+ = lens _verCreateTime
3039+ (\ s a -> s{_verCreateTime = a})
27573040
27583041-- | Configuration for third-party Python runtime libraries that are required
2759−-- by the application. Only returned in \`GET\` requests if \`view=FULL\`
2760−-- is set.
2761−vLibraries :: Lens' Version [Library]
2762−vLibraries
2763− = lens _vLibraries (\ s a -> s{_vLibraries = a}) .
2764− _Default
3042+-- by the application.Only returned in GET requests if view=FULL is set.
3043+verLibraries :: Lens' Version [Library]
3044+verLibraries
3045+ = lens _verLibraries (\ s a -> s{_verLibraries = a})
3046+ . _Default
27653047 . _Coerce
27663048
27673049-- | Serving URL for this version. Example:
2768−-- \"https:\/\/myversion-dot-myservice-dot-myapp.appspot.com\" \'OutputOnly
2769−vVersionURL :: Lens' Version (Maybe Text)
2770−vVersionURL
2771− = lens _vVersionURL (\ s a -> s{_vVersionURL = a})
2772−
2773−-- | Code and application artifacts that make up this version. Only returned
2774−-- in \`GET\` requests if \`view=FULL\` is set.
2775−vDeployment :: Lens' Version (Maybe Deployment)
2776−vDeployment
2777− = lens _vDeployment (\ s a -> s{_vDeployment = a})
3050+-- \"https:\/\/myversion-dot-myservice-dot-myapp.appspot.com\"\'OutputOnly
3051+verVersionURL :: Lens' Version (Maybe Text)
3052+verVersionURL
3053+ = lens _verVersionURL
3054+ (\ s a -> s{_verVersionURL = a})
3055+
3056+-- | Code and application artifacts that make up this version.Only returned
3057+-- in GET requests if view=FULL is set.
3058+verDeployment :: Lens' Version (Maybe Deployment)
3059+verDeployment
3060+ = lens _verDeployment
3061+ (\ s a -> s{_verDeployment = a})
27783062
27793063instance FromJSON Version where
27803064 parseJSON
@@ -2784,6 +3068,7 @@ instance FromJSON Version where
27843068 (o .:? "runtime") <*> (o .:? "nobuildFilesRegex") <*>
27853069 (o .:? "instanceClass")
27863070 <*> (o .:? "healthCheck")
3071+ <*> (o .:? "endpointsApiService")
27873072 <*> (o .:? "env")
27883073 <*> (o .:? "defaultExpiration")
27893074 <*> (o .:? "automaticScaling")
@@ -2813,32 +3098,36 @@ instance ToJSON Version where
28133098 toJSON Version'{..}
28143099 = object
28153100 (catMaybes
2816− [("runtime" .=) <$> _vRuntime,
2817− ("nobuildFilesRegex" .=) <$> _vNobuildFilesRegex,
2818− ("instanceClass" .=) <$> _vInstanceClass,
2819− ("healthCheck" .=) <$> _vHealthCheck,
2820− ("env" .=) <$> _vEnv,
2821− ("defaultExpiration" .=) <$> _vDefaultExpiration,
2822− ("automaticScaling" .=) <$> _vAutomaticScaling,
2823− ("errorHandlers" .=) <$> _vErrorHandlers,
2824− ("createdBy" .=) <$> _vCreatedBy, ("vm" .=) <$> _vVM,
2825− ("handlers" .=) <$> _vHandlers,
2826− ("inboundServices" .=) <$> _vInboundServices,
2827− ("network" .=) <$> _vNetwork,
2828− ("resources" .=) <$> _vResources,
2829− ("name" .=) <$> _vName,
2830− ("threadsafe" .=) <$> _vThreadsafe,
2831− ("betaSettings" .=) <$> _vBetaSettings,
2832− ("basicScaling" .=) <$> _vBasicScaling,
2833− ("manualScaling" .=) <$> _vManualScaling,
2834− ("apiConfig" .=) <$> _vAPIConfig, ("id" .=) <$> _vId,
2835− ("envVariables" .=) <$> _vEnvVariables,
2836− ("servingStatus" .=) <$> _vServingStatus,
2837− ("diskUsageBytes" .=) <$> _vDiskUsageBytes,
2838− ("createTime" .=) <$> _vCreateTime,
2839− ("libraries" .=) <$> _vLibraries,
2840− ("versionUrl" .=) <$> _vVersionURL,
2841− ("deployment" .=) <$> _vDeployment])
3101+ [("runtime" .=) <$> _verRuntime,
3102+ ("nobuildFilesRegex" .=) <$> _verNobuildFilesRegex,
3103+ ("instanceClass" .=) <$> _verInstanceClass,
3104+ ("healthCheck" .=) <$> _verHealthCheck,
3105+ ("endpointsApiService" .=) <$>
3106+ _verEndpointsAPIService,
3107+ ("env" .=) <$> _verEnv,
3108+ ("defaultExpiration" .=) <$> _verDefaultExpiration,
3109+ ("automaticScaling" .=) <$> _verAutomaticScaling,
3110+ ("errorHandlers" .=) <$> _verErrorHandlers,
3111+ ("createdBy" .=) <$> _verCreatedBy,
3112+ ("vm" .=) <$> _verVM,
3113+ ("handlers" .=) <$> _verHandlers,
3114+ ("inboundServices" .=) <$> _verInboundServices,
3115+ ("network" .=) <$> _verNetwork,
3116+ ("resources" .=) <$> _verResources,
3117+ ("name" .=) <$> _verName,
3118+ ("threadsafe" .=) <$> _verThreadsafe,
3119+ ("betaSettings" .=) <$> _verBetaSettings,
3120+ ("basicScaling" .=) <$> _verBasicScaling,
3121+ ("manualScaling" .=) <$> _verManualScaling,
3122+ ("apiConfig" .=) <$> _verAPIConfig,
3123+ ("id" .=) <$> _verId,
3124+ ("envVariables" .=) <$> _verEnvVariables,
3125+ ("servingStatus" .=) <$> _verServingStatus,
3126+ ("diskUsageBytes" .=) <$> _verDiskUsageBytes,
3127+ ("createTime" .=) <$> _verCreateTime,
3128+ ("libraries" .=) <$> _verLibraries,
3129+ ("versionUrl" .=) <$> _verVersionURL,
3130+ ("deployment" .=) <$> _verDeployment])
28423131
28433132-- | Files served directly to the user for a given URL, such as images, CSS
28443133-- stylesheets, or JavaScript source files. Static file handlers describe
@@ -2912,7 +3201,7 @@ sfhExpiration
29123201 = lens _sfhExpiration
29133202 (\ s a -> s{_sfhExpiration = a})
29143203
2915−-- | MIME type used to serve all files served by this handler. Defaults to
3204+-- | MIME type used to serve all files served by this handler.Defaults to
29163205-- file-specific MIME types, which are derived from each file\'s filename
29173206-- extension.
29183207sfhMimeType :: Lens' StaticFilesHandler (Maybe Text)
@@ -2989,7 +3278,7 @@ errorHandler =
29893278 , _ehStaticFile = Nothing
29903279 }
29913280
2992−-- | MIME type of file. Defaults to \`text\/html\`.
3281+-- | MIME type of file. Defaults to text\/html.
29933282ehMimeType :: Lens' ErrorHandler (Maybe Text)
29943283ehMimeType
29953284 = lens _ehMimeType (\ s a -> s{_ehMimeType = a})
@@ -3077,15 +3366,15 @@ locationMetadata =
30773366 , _lmFlexibleEnvironmentAvailable = Nothing
30783367 }
30793368
3080−-- | App Engine Standard Environment is available in the given location.
3081−-- \'OutputOnly
3369+-- | App Engine Standard Environment is available in the given
3370+-- location.\'OutputOnly
30823371lmStandardEnvironmentAvailable :: Lens' LocationMetadata (Maybe Bool)
30833372lmStandardEnvironmentAvailable
30843373 = lens _lmStandardEnvironmentAvailable
30853374 (\ s a -> s{_lmStandardEnvironmentAvailable = a})
30863375
3087−-- | App Engine Flexible Environment is available in the given location.
3088−-- \'OutputOnly
3376+-- | App Engine Flexible Environment is available in the given
3377+-- location.\'OutputOnly
30893378lmFlexibleEnvironmentAvailable :: Lens' LocationMetadata (Maybe Bool)
30903379lmFlexibleEnvironmentAvailable
30913380 = lens _lmFlexibleEnvironmentAvailable
@@ -3147,34 +3436,34 @@ operationMetadata =
31473436 , _omTarget = Nothing
31483437 }
31493438
3150−-- | Timestamp that this operation was created. \'OutputOnly
3439+-- | Timestamp that this operation was created.\'OutputOnly
31513440omInsertTime :: Lens' OperationMetadata (Maybe Text)
31523441omInsertTime
31533442 = lens _omInsertTime (\ s a -> s{_omInsertTime = a})
31543443
3155−-- | User who requested this operation. \'OutputOnly
3444+-- | User who requested this operation.\'OutputOnly
31563445omUser :: Lens' OperationMetadata (Maybe Text)
31573446omUser = lens _omUser (\ s a -> s{_omUser = a})
31583447
31593448-- | API method that initiated this operation. Example:
3160−-- \`google.appengine.v1beta4.Version.CreateVersion\`. \'OutputOnly
3449+-- google.appengine.v1beta4.Version.CreateVersion.\'OutputOnly
31613450omMethod :: Lens' OperationMetadata (Maybe Text)
31623451omMethod = lens _omMethod (\ s a -> s{_omMethod = a})
31633452
3164−-- | Timestamp that this operation completed. \'OutputOnly
3453+-- | Timestamp that this operation completed.\'OutputOnly
31653454omEndTime :: Lens' OperationMetadata (Maybe Text)
31663455omEndTime
31673456 = lens _omEndTime (\ s a -> s{_omEndTime = a})
31683457
31693458-- | Type of this operation. Deprecated, use method field instead. Example:
3170−-- \"create_version\". \'OutputOnly
3459+-- \"create_version\".\'OutputOnly
31713460omOperationType :: Lens' OperationMetadata (Maybe Text)
31723461omOperationType
31733462 = lens _omOperationType
31743463 (\ s a -> s{_omOperationType = a})
31753464
31763465-- | Name of the resource that this operation is acting on. Example:
3177−-- \`apps\/myapp\/modules\/default\`. \'OutputOnly
3466+-- apps\/myapp\/modules\/default.\'OutputOnly
31783467omTarget :: Lens' OperationMetadata (Maybe Text)
31793468omTarget = lens _omTarget (\ s a -> s{_omTarget = a})
31803469
@@ -3199,7 +3488,7 @@ instance ToJSON OperationMetadata where
31993488 ("operationType" .=) <$> _omOperationType,
32003489 ("target" .=) <$> _omTarget])
32013490
3202−-- | Response message for \`Instances.ListInstances\`.
3491+-- | Response message for Instances.ListInstances.
32033492--
32043493-- /See:/ 'listInstancesResponse' smart constructor.
32053494data ListInstancesResponse = ListInstancesResponse'
@@ -3326,13 +3615,12 @@ instance ToJSON RepairApplicationRequest where
33263615 toJSON = const emptyObject
33273616
33283617-- | The normal response of the operation in case of success. If the original
3329−-- method returns no data on success, such as \`Delete\`, the response is
3330−-- \`google.protobuf.Empty\`. If the original method is standard
3331−-- \`Get\`\/\`Create\`\/\`Update\`, the response should be the resource.
3332−-- For other methods, the response should have the type \`XxxResponse\`,
3333−-- where \`Xxx\` is the original method name. For example, if the original
3334−-- method name is \`TakeSnapshot()\`, the inferred response type is
3335−-- \`TakeSnapshotResponse\`.
3618+-- method returns no data on success, such as Delete, the response is
3619+-- google.protobuf.Empty. If the original method is standard
3620+-- Get\/Create\/Update, the response should be the resource. For other
3621+-- methods, the response should have the type XxxResponse, where Xxx is the
3622+-- original method name. For example, if the original method name is
3623+-- TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
33363624--
33373625-- /See:/ 'operationResponse' smart constructor.
33383626newtype OperationResponse = OperationResponse'
@@ -3410,6 +3698,7 @@ data Instance = Instance'
34103698 { _iMemoryUsage :: !(Maybe (Textual Int64))
34113699 , _iVMStatus :: !(Maybe Text)
34123700 , _iVMZoneName :: !(Maybe Text)
3701+ , _iVMIP :: !(Maybe Text)
34133702 , _iStartTime :: !(Maybe Text)
34143703 , _iVMId :: !(Maybe Text)
34153704 , _iAvailability :: !(Maybe Text)
@@ -3434,6 +3723,8 @@ data Instance = Instance'
34343723--
34353724-- * 'iVMZoneName'
34363725--
3726+-- * 'iVMIP'
3727+--
34373728-- * 'iStartTime'
34383729--
34393730-- * 'iVMId'
@@ -3464,6 +3755,7 @@ instance' =
34643755 { _iMemoryUsage = Nothing
34653756 , _iVMStatus = Nothing
34663757 , _iVMZoneName = Nothing
3758+ , _iVMIP = Nothing
34673759 , _iStartTime = Nothing
34683760 , _iVMId = Nothing
34693761 , _iAvailability = Nothing
@@ -3478,89 +3770,93 @@ instance' =
34783770 , _iAppEngineRelease = Nothing
34793771 }
34803772
3481−-- | Total memory in use (bytes). \'OutputOnly
3773+-- | Total memory in use (bytes).\'OutputOnly
34823774iMemoryUsage :: Lens' Instance (Maybe Int64)
34833775iMemoryUsage
34843776 = lens _iMemoryUsage (\ s a -> s{_iMemoryUsage = a})
34853777 . mapping _Coerce
34863778
34873779-- | Status of the virtual machine where this instance lives. Only applicable
3488−-- for instances in App Engine flexible environment. \'OutputOnly
3780+-- for instances in App Engine flexible environment.\'OutputOnly
34893781iVMStatus :: Lens' Instance (Maybe Text)
34903782iVMStatus
34913783 = lens _iVMStatus (\ s a -> s{_iVMStatus = a})
34923784
34933785-- | Zone where the virtual machine is located. Only applicable for instances
3494−-- in App Engine flexible environment. \'OutputOnly
3786+-- in App Engine flexible environment.\'OutputOnly
34953787iVMZoneName :: Lens' Instance (Maybe Text)
34963788iVMZoneName
34973789 = lens _iVMZoneName (\ s a -> s{_iVMZoneName = a})
34983790
3499−-- | Time that this instance was started. \'OutputOnly
3791+-- | The IP address of this instance. Only applicable for instances in App
3792+-- Engine flexible environment.\'OutputOnly
3793+iVMIP :: Lens' Instance (Maybe Text)
3794+iVMIP = lens _iVMIP (\ s a -> s{_iVMIP = a})
3795+
3796+-- | Time that this instance was started.\'OutputOnly
35003797iStartTime :: Lens' Instance (Maybe Text)
35013798iStartTime
35023799 = lens _iStartTime (\ s a -> s{_iStartTime = a})
35033800
35043801-- | Virtual machine ID of this instance. Only applicable for instances in
3505−-- App Engine flexible environment. \'OutputOnly
3802+-- App Engine flexible environment.\'OutputOnly
35063803iVMId :: Lens' Instance (Maybe Text)
35073804iVMId = lens _iVMId (\ s a -> s{_iVMId = a})
35083805
3509−-- | Availability of the instance. \'OutputOnly
3806+-- | Availability of the instance.\'OutputOnly
35103807iAvailability :: Lens' Instance (Maybe Text)
35113808iAvailability
35123809 = lens _iAvailability
35133810 (\ s a -> s{_iAvailability = a})
35143811
35153812-- | Name of the virtual machine where this instance lives. Only applicable
3516−-- for instances in App Engine flexible environment. \'OutputOnly
3813+-- for instances in App Engine flexible environment.\'OutputOnly
35173814iVMName :: Lens' Instance (Maybe Text)
35183815iVMName = lens _iVMName (\ s a -> s{_iVMName = a})
35193816
35203817-- | Full path to the Instance resource in the API. Example:
3521−-- \`apps\/myapp\/services\/default\/versions\/v1\/instances\/instance-1\`.
3522−-- \'OutputOnly
3818+-- apps\/myapp\/services\/default\/versions\/v1\/instances\/instance-1.\'OutputOnly
35233819iName :: Lens' Instance (Maybe Text)
35243820iName = lens _iName (\ s a -> s{_iName = a})
35253821
35263822-- | Whether this instance is in debug mode. Only applicable for instances in
3527−-- App Engine flexible environment. \'OutputOnly
3823+-- App Engine flexible environment.\'OutputOnly
35283824iVMDebugEnabled :: Lens' Instance (Maybe Bool)
35293825iVMDebugEnabled
35303826 = lens _iVMDebugEnabled
35313827 (\ s a -> s{_iVMDebugEnabled = a})
35323828
3533−-- | Number of requests since this instance was started. \'OutputOnly
3829+-- | Number of requests since this instance was started.\'OutputOnly
35343830iRequests :: Lens' Instance (Maybe Int32)
35353831iRequests
35363832 = lens _iRequests (\ s a -> s{_iRequests = a}) .
35373833 mapping _Coerce
35383834
3539−-- | Average queries per second (QPS) over the last minute. \'OutputOnly
3835+-- | Average queries per second (QPS) over the last minute.\'OutputOnly
35403836iQps :: Lens' Instance (Maybe Double)
35413837iQps
35423838 = lens _iQps (\ s a -> s{_iQps = a}) .
35433839 mapping _Coerce
35443840
35453841-- | Relative name of the instance within the version. Example:
3546−-- \`instance-1\`. \'OutputOnly
3842+-- instance-1.\'OutputOnly
35473843iId :: Lens' Instance (Maybe Text)
35483844iId = lens _iId (\ s a -> s{_iId = a})
35493845
3550−-- | Number of errors since this instance was started. \'OutputOnly
3846+-- | Number of errors since this instance was started.\'OutputOnly
35513847iErrors :: Lens' Instance (Maybe Int32)
35523848iErrors
35533849 = lens _iErrors (\ s a -> s{_iErrors = a}) .
35543850 mapping _Coerce
35553851
3556−-- | Average latency (ms) over the last minute. \'OutputOnly
3852+-- | Average latency (ms) over the last minute.\'OutputOnly
35573853iAverageLatency :: Lens' Instance (Maybe Int32)
35583854iAverageLatency
35593855 = lens _iAverageLatency
35603856 (\ s a -> s{_iAverageLatency = a})
35613857 . mapping _Coerce
35623858
3563−-- | App Engine release this instance is running on. \'OutputOnly
3859+-- | App Engine release this instance is running on.\'OutputOnly
35643860iAppEngineRelease :: Lens' Instance (Maybe Text)
35653861iAppEngineRelease
35663862 = lens _iAppEngineRelease
@@ -3573,6 +3869,7 @@ instance FromJSON Instance where
35733869 Instance' <$>
35743870 (o .:? "memoryUsage") <*> (o .:? "vmStatus") <*>
35753871 (o .:? "vmZoneName")
3872+ <*> (o .:? "vmIp")
35763873 <*> (o .:? "startTime")
35773874 <*> (o .:? "vmId")
35783875 <*> (o .:? "availability")
@@ -3593,6 +3890,7 @@ instance ToJSON Instance where
35933890 [("memoryUsage" .=) <$> _iMemoryUsage,
35943891 ("vmStatus" .=) <$> _iVMStatus,
35953892 ("vmZoneName" .=) <$> _iVMZoneName,
3893+ ("vmIp" .=) <$> _iVMIP,
35963894 ("startTime" .=) <$> _iStartTime,
35973895 ("vmId" .=) <$> _iVMId,
35983896 ("availability" .=) <$> _iAvailability,