@@ -20,63 +20,63 @@ module Network.Google.AppEngine.Types.Product where
20import Network.Google.AppEngine.Types.Sum
20import Network.Google.AppEngine.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
23−-- | Target scaling by network usage (for VM runtimes only).
23+-- | Target scaling by network usage. Only applicable for VM runtimes.
25-- /See:/ 'networkUtilization' smart constructor.
25-- /See:/ 'networkUtilization' smart constructor.
26data NetworkUtilization = NetworkUtilization'
26data NetworkUtilization = NetworkUtilization'
27− { _nuTargetReceivedBytesPerSec :: !(Maybe (Textual Int32))
27+ { _nuTargetReceivedBytesPerSecond :: !(Maybe (Textual Int32))
28− , _nuTargetSentPacketsPerSec :: !(Maybe (Textual Int32))
28+ , _nuTargetSentPacketsPerSecond :: !(Maybe (Textual Int32))
29− , _nuTargetReceivedPacketsPerSec :: !(Maybe (Textual Int32))
29+ , _nuTargetReceivedPacketsPerSecond :: !(Maybe (Textual Int32))
30− , _nuTargetSentBytesPerSec :: !(Maybe (Textual Int32))
30+ , _nuTargetSentBytesPerSecond :: !(Maybe (Textual Int32))
31 } deriving (Eq,Show,Data,Typeable,Generic)
31 } deriving (Eq,Show,Data,Typeable,Generic)
33-- | Creates a value of 'NetworkUtilization' with the minimum fields required to make a request.
33-- | Creates a value of 'NetworkUtilization' with the minimum fields required to make a request.
35-- Use one of the following lenses to modify other fields as desired:
35-- Use one of the following lenses to modify other fields as desired:
37−-- * 'nuTargetReceivedBytesPerSec'
37+-- * 'nuTargetReceivedBytesPerSecond'
39−-- * 'nuTargetSentPacketsPerSec'
39+-- * 'nuTargetSentPacketsPerSecond'
41−-- * 'nuTargetReceivedPacketsPerSec'
41+-- * 'nuTargetReceivedPacketsPerSecond'
43−-- * 'nuTargetSentBytesPerSec'
43+-- * 'nuTargetSentBytesPerSecond'
44networkUtilization
44networkUtilization
45 :: NetworkUtilization
45 :: NetworkUtilization
46networkUtilization =
46networkUtilization =
47 NetworkUtilization'
47 NetworkUtilization'
48− { _nuTargetReceivedBytesPerSec = Nothing
48+ { _nuTargetReceivedBytesPerSecond = Nothing
49− , _nuTargetSentPacketsPerSec = Nothing
49+ , _nuTargetSentPacketsPerSecond = Nothing
50− , _nuTargetReceivedPacketsPerSec = Nothing
50+ , _nuTargetReceivedPacketsPerSecond = Nothing
51− , _nuTargetSentBytesPerSec = Nothing
51+ , _nuTargetSentBytesPerSecond = Nothing
54−-- | Target bytes per second received.
54+-- | Target bytes received per second.
55−nuTargetReceivedBytesPerSec :: Lens' NetworkUtilization (Maybe Int32)
55+nuTargetReceivedBytesPerSecond :: Lens' NetworkUtilization (Maybe Int32)
56−nuTargetReceivedBytesPerSec
56+nuTargetReceivedBytesPerSecond
57− = lens _nuTargetReceivedBytesPerSec
57+ = lens _nuTargetReceivedBytesPerSecond
58− (\ s a -> s{_nuTargetReceivedBytesPerSec = a})
58+ (\ s a -> s{_nuTargetReceivedBytesPerSecond = a})
59 . mapping _Coerce
59 . mapping _Coerce
61−-- | Target packets per second sent.
61+-- | Target packets sent per second.
62−nuTargetSentPacketsPerSec :: Lens' NetworkUtilization (Maybe Int32)
62+nuTargetSentPacketsPerSecond :: Lens' NetworkUtilization (Maybe Int32)
63−nuTargetSentPacketsPerSec
63+nuTargetSentPacketsPerSecond
64− = lens _nuTargetSentPacketsPerSec
64+ = lens _nuTargetSentPacketsPerSecond
65− (\ s a -> s{_nuTargetSentPacketsPerSec = a})
65+ (\ s a -> s{_nuTargetSentPacketsPerSecond = a})
66 . mapping _Coerce
66 . mapping _Coerce
68−-- | Target packets per second received.
68+-- | Target packets received per second.
69−nuTargetReceivedPacketsPerSec :: Lens' NetworkUtilization (Maybe Int32)
69+nuTargetReceivedPacketsPerSecond :: Lens' NetworkUtilization (Maybe Int32)
70−nuTargetReceivedPacketsPerSec
70+nuTargetReceivedPacketsPerSecond
71− = lens _nuTargetReceivedPacketsPerSec
71+ = lens _nuTargetReceivedPacketsPerSecond
72− (\ s a -> s{_nuTargetReceivedPacketsPerSec = a})
72+ (\ s a -> s{_nuTargetReceivedPacketsPerSecond = a})
73 . mapping _Coerce
73 . mapping _Coerce
75−-- | Target bytes per second sent.
75+-- | Target bytes sent per second.
76−nuTargetSentBytesPerSec :: Lens' NetworkUtilization (Maybe Int32)
76+nuTargetSentBytesPerSecond :: Lens' NetworkUtilization (Maybe Int32)
77−nuTargetSentBytesPerSec
77+nuTargetSentBytesPerSecond
78− = lens _nuTargetSentBytesPerSec
78+ = lens _nuTargetSentBytesPerSecond
79− (\ s a -> s{_nuTargetSentBytesPerSec = a})
79+ (\ s a -> s{_nuTargetSentBytesPerSecond = a})
80 . mapping _Coerce
80 . mapping _Coerce
82instance FromJSON NetworkUtilization where
82instance FromJSON NetworkUtilization where
@@ -84,23 +84,23 @@ instance FromJSON NetworkUtilization where
84 = withObject "NetworkUtilization"
84 = withObject "NetworkUtilization"
86 NetworkUtilization' <$>
86 NetworkUtilization' <$>
87− (o .:? "targetReceivedBytesPerSec") <*>
87+ (o .:? "targetReceivedBytesPerSecond") <*>
88− (o .:? "targetSentPacketsPerSec")
88+ (o .:? "targetSentPacketsPerSecond")
89− <*> (o .:? "targetReceivedPacketsPerSec")
89+ <*> (o .:? "targetReceivedPacketsPerSecond")
90− <*> (o .:? "targetSentBytesPerSec"))
90+ <*> (o .:? "targetSentBytesPerSecond"))
92instance ToJSON NetworkUtilization where
92instance ToJSON NetworkUtilization where
93 toJSON NetworkUtilization'{..}
93 toJSON NetworkUtilization'{..}
95 (catMaybes
95 (catMaybes
96− [("targetReceivedBytesPerSec" .=) <$>
96+ [("targetReceivedBytesPerSecond" .=) <$>
97− _nuTargetReceivedBytesPerSec,
97+ _nuTargetReceivedBytesPerSecond,
98− ("targetSentPacketsPerSec" .=) <$>
98+ ("targetSentPacketsPerSecond" .=) <$>
99− _nuTargetSentPacketsPerSec,
99+ _nuTargetSentPacketsPerSecond,
100− ("targetReceivedPacketsPerSec" .=) <$>
100+ ("targetReceivedPacketsPerSecond" .=) <$>
101− _nuTargetReceivedPacketsPerSec,
101+ _nuTargetReceivedPacketsPerSecond,
102− ("targetSentBytesPerSec" .=) <$>
102+ ("targetSentBytesPerSecond" .=) <$>
103− _nuTargetSentBytesPerSec])
103+ _nuTargetSentBytesPerSecond])
105-- | The \`Status\` type defines a logical error model that is suitable for
105-- | The \`Status\` type defines a logical error model that is suitable for
106-- different programming environments, including REST APIs and RPC APIs. It
106-- different programming environments, including REST APIs and RPC APIs. It
@@ -222,7 +222,7 @@ operationSchema pOsAddtional_ =
222 { _osAddtional = _Coerce # pOsAddtional_
222 { _osAddtional = _Coerce # pOsAddtional_
225−-- | Properties of the object. Contains field \'ype with type URL.
225+-- | Properties of the object. Contains field \'type with type URL.
226osAddtional :: Lens' OperationSchema (HashMap Text JSONValue)
226osAddtional :: Lens' OperationSchema (HashMap Text JSONValue)
227osAddtional
227osAddtional
228 = lens _osAddtional (\ s a -> s{_osAddtional = a}) .
228 = lens _osAddtional (\ s a -> s{_osAddtional = a}) .
@@ -236,10 +236,44 @@ instance FromJSON OperationSchema where
236instance ToJSON OperationSchema where
236instance ToJSON OperationSchema where
237 toJSON = toJSON . _osAddtional
237 toJSON = toJSON . _osAddtional
239+-- | Service-specific metadata. For example the available capacity at the
242+-- /See:/ 'locationSchema' smart constructor.
243+newtype LocationSchema = LocationSchema'
244+ { _lsAddtional :: HashMap Text JSONValue
245+ } deriving (Eq,Show,Data,Typeable,Generic)
247+-- | Creates a value of 'LocationSchema' with the minimum fields required to make a request.
249+-- Use one of the following lenses to modify other fields as desired:
253+ :: HashMap Text JSONValue -- ^ 'lsAddtional'
255+locationSchema pLsAddtional_ =
257+ { _lsAddtional = _Coerce # pLsAddtional_
260+-- | Properties of the object. Contains field \'type with type URL.
261+lsAddtional :: Lens' LocationSchema (HashMap Text JSONValue)
263+ = lens _lsAddtional (\ s a -> s{_lsAddtional = a}) .
266+instance FromJSON LocationSchema where
268+ = withObject "LocationSchema"
269+ (\ o -> LocationSchema' <$> (parseJSONObject o))
271+instance ToJSON LocationSchema where
272+ toJSON = toJSON . _lsAddtional
239−-- | Configuration for traffic splitting for versions within a single
274+-- | Traffic routing configuration for versions within a single service.
240−-- service. Traffic splitting allows traffic directed to the service to be
275+-- Traffic splits define how traffic directed to the service is assigned to
241−-- assigned to one of several versions in a fractional way, enabling
276+-- versions.
242−-- experiments and canarying new builds, for example.
244-- /See:/ 'trafficSplit' smart constructor.
278-- /See:/ 'trafficSplit' smart constructor.
245data TrafficSplit = TrafficSplit'
279data TrafficSplit = TrafficSplit'
@@ -262,21 +296,21 @@ trafficSplit =
262 , _tsAllocations = Nothing
296 , _tsAllocations = Nothing
265−-- | Which mechanism should be used as a selector when choosing a version to
299+-- | Mechanism used to determine which version a request is sent to. The
266−-- send a request to. The traffic selection algorithm will be stable for
300+-- traffic selection algorithm will be stable for either type until
267−-- either type until allocations are changed.
301+-- allocations are changed.
268tsShardBy :: Lens' TrafficSplit (Maybe Text)
302tsShardBy :: Lens' TrafficSplit (Maybe Text)
270 = lens _tsShardBy (\ s a -> s{_tsShardBy = a})
304 = lens _tsShardBy (\ s a -> s{_tsShardBy = a})
272−-- | Mapping from service version IDs within the service to fractional
306+-- | Mapping from version IDs within the service to fractional (0.000, 1]
273−-- (0.000, 1] allocations of traffic for that version. Each version may
307+-- allocations of traffic for that version. Each version can be specified
274−-- only be specified once, but some versions in the service may not have
308+-- only once, but some versions in the service may not have any traffic
275−-- any traffic allocation. Services that have traffic allocated in this
309+-- allocation. Services that have traffic allocated cannot be deleted until
276−-- field may not be deleted until the service is deleted, or their traffic
310+-- either the service is deleted or their traffic allocation is removed.
277−-- allocation is removed. Allocations must sum to 1. Supports precision up
311+-- Allocations must sum to 1. Up to two decimal place precision is
278−-- to two decimal places for IP-based splits and up to three decimal places
312+-- supported for IP-based splits and up to three decimal places is
279−-- for cookie-based splits.
313+-- supported for cookie-based splits.
280tsAllocations :: Lens' TrafficSplit (Maybe TrafficSplitAllocations)
314tsAllocations :: Lens' TrafficSplit (Maybe TrafficSplitAllocations)
281tsAllocations
315tsAllocations
282 = lens _tsAllocations
316 = lens _tsAllocations
@@ -315,7 +349,7 @@ scriptHandler =
315 { _shScriptPath = Nothing
349 { _shScriptPath = Nothing
318−-- | Specifies the path to the script from the application root directory.
352+-- | Path to the script from the application root directory.
319shScriptPath :: Lens' ScriptHandler (Maybe Text)
353shScriptPath :: Lens' ScriptHandler (Maybe Text)
320shScriptPath
354shScriptPath
321 = lens _shScriptPath (\ s a -> s{_shScriptPath = a})
355 = lens _shScriptPath (\ s a -> s{_shScriptPath = a})
@@ -381,9 +415,9 @@ instance ToJSON ListServicesResponse where
381 [("nextPageToken" .=) <$> _lsrNextPageToken,
415 [("nextPageToken" .=) <$> _lsrNextPageToken,
382 ("services" .=) <$> _lsrServices])
416 ("services" .=) <$> _lsrServices])
384−-- | A URL pattern and description of how it should be handled. App Engine
418+-- | URL pattern and description of how the URL should be handled. App Engine
385−-- can handle URLs by executing application code, or by serving static
419+-- can handle URLs by executing application code or by serving static files
386−-- files uploaded with the code, such as images, CSS or JavaScript.
420+-- uploaded with the version, such as images, CSS, or JavaScript.
388-- /See:/ 'urlMap' smart constructor.
422-- /See:/ 'urlMap' smart constructor.
389data URLMap = URLMap'
423data URLMap = URLMap'
@@ -430,40 +464,39 @@ urlMap =
430 , _umLogin = Nothing
464 , _umLogin = Nothing
433−-- | Executes a script to handle the request that matches the URL pattern.
467+-- | Executes a script to handle the request that matches this URL pattern.
434umScript :: Lens' URLMap (Maybe ScriptHandler)
468umScript :: Lens' URLMap (Maybe ScriptHandler)
435umScript = lens _umScript (\ s a -> s{_umScript = a})
469umScript = lens _umScript (\ s a -> s{_umScript = a})
437−-- | Configures whether security (HTTPS) should be enforced for this URL.
471+-- | Security (HTTPS) enforcement for this URL.
438umSecurityLevel :: Lens' URLMap (Maybe Text)
472umSecurityLevel :: Lens' URLMap (Maybe Text)
439umSecurityLevel
473umSecurityLevel
440 = lens _umSecurityLevel
474 = lens _umSecurityLevel
441 (\ s a -> s{_umSecurityLevel = a})
475 (\ s a -> s{_umSecurityLevel = a})
443−-- | Use API Endpoints to handle requests.
477+-- | Uses API Endpoints to handle requests.
444umAPIEndpoint :: Lens' URLMap (Maybe APIEndpointHandler)
478umAPIEndpoint :: Lens' URLMap (Maybe APIEndpointHandler)
445umAPIEndpoint
479umAPIEndpoint
446 = lens _umAPIEndpoint
480 = lens _umAPIEndpoint
447 (\ s a -> s{_umAPIEndpoint = a})
481 (\ s a -> s{_umAPIEndpoint = a})
449−-- | A URL prefix. This value uses regular expression syntax (and so regexp
483+-- | URL prefix. Uses regular expression syntax, which means regexp special
450−-- special characters must be escaped), but it should not contain
484+-- characters must be escaped, but should not contain groupings. All URLs
451−-- groupings. All URLs that begin with this prefix are handled by this
485+-- that begin with this prefix are handled by this handler, using the
452−-- handler, using the portion of the URL after the prefix as part of the
486+-- portion of the URL after the prefix as part of the file path.
453−-- file path. This is always required.
454umURLRegex :: Lens' URLMap (Maybe Text)
487umURLRegex :: Lens' URLMap (Maybe Text)
455umURLRegex
488umURLRegex
456 = lens _umURLRegex (\ s a -> s{_umURLRegex = a})
489 = lens _umURLRegex (\ s a -> s{_umURLRegex = a})
458-- | \`30x\` code to use when performing redirects for the \`secure\` field.
491-- | \`30x\` code to use when performing redirects for the \`secure\` field.
459−-- A \`302\` is used by default.
492+-- Defaults to \`302\`.
460umRedirectHTTPResponseCode :: Lens' URLMap (Maybe Text)
493umRedirectHTTPResponseCode :: Lens' URLMap (Maybe Text)
461umRedirectHTTPResponseCode
494umRedirectHTTPResponseCode
462 = lens _umRedirectHTTPResponseCode
495 = lens _umRedirectHTTPResponseCode
463 (\ s a -> s{_umRedirectHTTPResponseCode = a})
496 (\ s a -> s{_umRedirectHTTPResponseCode = a})
465−-- | For users not logged in, how to handle access to resources with required
498+-- | Action to take when users access resources that require authentication.
466−-- login. Defaults to \"redirect\".
499+-- Defaults to \`redirect\`.
467umAuthFailAction :: Lens' URLMap (Maybe Text)
500umAuthFailAction :: Lens' URLMap (Maybe Text)
468umAuthFailAction
501umAuthFailAction
469 = lens _umAuthFailAction
502 = lens _umAuthFailAction
@@ -475,7 +508,7 @@ umStaticFiles
475 = lens _umStaticFiles
508 = lens _umStaticFiles
476 (\ s a -> s{_umStaticFiles = a})
509 (\ s a -> s{_umStaticFiles = a})
478−-- | What level of login is required to access this resource.
511+-- | Level of login required to access this resource.
479umLogin :: Lens' URLMap (Maybe Text)
512umLogin :: Lens' URLMap (Maybe Text)
480umLogin = lens _umLogin (\ s a -> s{_umLogin = a})
513umLogin = lens _umLogin (\ s a -> s{_umLogin = a})
@@ -506,7 +539,7 @@ instance ToJSON URLMap where
506 ("staticFiles" .=) <$> _umStaticFiles,
539 ("staticFiles" .=) <$> _umStaticFiles,
507 ("login" .=) <$> _umLogin])
540 ("login" .=) <$> _umLogin])
509−-- | A Python runtime third-party library required by the application.
542+-- | Third-party Python runtime library that is required by the application.
511-- /See:/ 'library' smart constructor.
544-- /See:/ 'library' smart constructor.
512data Library = Library'
545data Library = Library'
@@ -529,11 +562,11 @@ library =
529 , _lVersion = Nothing
562 , _lVersion = Nothing
532−-- | The name of the library, e.g. \"PIL\" or \"django\".
565+-- | Name of the library. Example: \"django\".
533lName :: Lens' Library (Maybe Text)
566lName :: Lens' Library (Maybe Text)
534lName = lens _lName (\ s a -> s{_lName = a})
567lName = lens _lName (\ s a -> s{_lName = a})
536−-- | The version of the library to select, or \"latest\".
569+-- | Version of the library to select, or \"latest\".
537lVersion :: Lens' Library (Maybe Text)
570lVersion :: Lens' Library (Maybe Text)
538lVersion = lens _lVersion (\ s a -> s{_lVersion = a})
571lVersion = lens _lVersion (\ s a -> s{_lVersion = a})
@@ -550,63 +583,114 @@ instance ToJSON Library where
550 [("name" .=) <$> _lName,
583 [("name" .=) <$> _lName,
551 ("version" .=) <$> _lVersion])
584 ("version" .=) <$> _lVersion])
586+-- | The response message for LocationService.ListLocations.
588+-- /See:/ 'listLocationsResponse' smart constructor.
589+data ListLocationsResponse = ListLocationsResponse'
590+ { _llrNextPageToken :: !(Maybe Text)
591+ , _llrLocations :: !(Maybe [Location])
592+ } deriving (Eq,Show,Data,Typeable,Generic)
594+-- | Creates a value of 'ListLocationsResponse' with the minimum fields required to make a request.
596+-- Use one of the following lenses to modify other fields as desired:
598+-- * 'llrNextPageToken'
601+listLocationsResponse
602+ :: ListLocationsResponse
603+listLocationsResponse =
604+ ListLocationsResponse'
605+ { _llrNextPageToken = Nothing
606+ , _llrLocations = Nothing
609+-- | The standard List next-page token.
610+llrNextPageToken :: Lens' ListLocationsResponse (Maybe Text)
612+ = lens _llrNextPageToken
613+ (\ s a -> s{_llrNextPageToken = a})
615+-- | A list of locations that matches the specified filter in the request.
616+llrLocations :: Lens' ListLocationsResponse [Location]
618+ = lens _llrLocations (\ s a -> s{_llrLocations = a})
622+instance FromJSON ListLocationsResponse where
624+ = withObject "ListLocationsResponse"
626+ ListLocationsResponse' <$>
627+ (o .:? "nextPageToken") <*>
628+ (o .:? "locations" .!= mempty))
630+instance ToJSON ListLocationsResponse where
631+ toJSON ListLocationsResponse'{..}
634+ [("nextPageToken" .=) <$> _llrNextPageToken,
635+ ("locations" .=) <$> _llrLocations])
553−-- | Target scaling by disk usage (for VM runtimes only).
637+-- | Target scaling by disk usage. Only applicable for VM runtimes.
555-- /See:/ 'diskUtilization' smart constructor.
639-- /See:/ 'diskUtilization' smart constructor.
556data DiskUtilization = DiskUtilization'
640data DiskUtilization = DiskUtilization'
641+ { _duTargetReadBytesPerSecond :: !(Maybe (Textual Int32))
642+ , _duTargetReadOpsPerSecond :: !(Maybe (Textual Int32))
557− { _duTargetWriteOpsPerSec :: !(Maybe (Textual Int32))
643+ , _duTargetWriteOpsPerSecond :: !(Maybe (Textual Int32))
558− , _duTargetReadOpsPerSec :: !(Maybe (Textual Int32))
644+ , _duTargetWriteBytesPerSecond :: !(Maybe (Textual Int32))
559− , _duTargetWriteBytesPerSec :: !(Maybe (Textual Int32))
560− , _duTargetReadBytesPerSec :: !(Maybe (Textual Int32))
561 } deriving (Eq,Show,Data,Typeable,Generic)
645 } deriving (Eq,Show,Data,Typeable,Generic)
563-- | Creates a value of 'DiskUtilization' with the minimum fields required to make a request.
647-- | Creates a value of 'DiskUtilization' with the minimum fields required to make a request.
565-- Use one of the following lenses to modify other fields as desired:
649-- Use one of the following lenses to modify other fields as desired:
567−-- * 'duTargetWriteOpsPerSec'
651+-- * 'duTargetReadBytesPerSecond'
569−-- * 'duTargetReadOpsPerSec'
653+-- * 'duTargetReadOpsPerSecond'
571−-- * 'duTargetWriteBytesPerSec'
655+-- * 'duTargetWriteOpsPerSecond'
573−-- * 'duTargetReadBytesPerSec'
657+-- * 'duTargetWriteBytesPerSecond'
574diskUtilization
658diskUtilization
575 :: DiskUtilization
659 :: DiskUtilization
576diskUtilization =
660diskUtilization =
577 DiskUtilization'
661 DiskUtilization'
578− { _duTargetWriteOpsPerSec = Nothing
662+ { _duTargetReadBytesPerSecond = Nothing
579− , _duTargetReadOpsPerSec = Nothing
663+ , _duTargetReadOpsPerSecond = Nothing
580− , _duTargetWriteBytesPerSec = Nothing
664+ , _duTargetWriteOpsPerSecond = Nothing
581− , _duTargetReadBytesPerSec = Nothing
665+ , _duTargetWriteBytesPerSecond = Nothing
584−-- | Target ops per second written.
668+-- | Target bytes read per second.
585−duTargetWriteOpsPerSec :: Lens' DiskUtilization (Maybe Int32)
669+duTargetReadBytesPerSecond :: Lens' DiskUtilization (Maybe Int32)
586−duTargetWriteOpsPerSec
670+duTargetReadBytesPerSecond
587− = lens _duTargetWriteOpsPerSec
671+ = lens _duTargetReadBytesPerSecond
588− (\ s a -> s{_duTargetWriteOpsPerSec = a})
672+ (\ s a -> s{_duTargetReadBytesPerSecond = a})
589 . mapping _Coerce
673 . mapping _Coerce
591−-- | Target ops per second read.
675+-- | Target ops read per seconds.
592−duTargetReadOpsPerSec :: Lens' DiskUtilization (Maybe Int32)
676+duTargetReadOpsPerSecond :: Lens' DiskUtilization (Maybe Int32)
593−duTargetReadOpsPerSec
677+duTargetReadOpsPerSecond
594− = lens _duTargetReadOpsPerSec
678+ = lens _duTargetReadOpsPerSecond
595− (\ s a -> s{_duTargetReadOpsPerSec = a})
679+ (\ s a -> s{_duTargetReadOpsPerSecond = a})
596 . mapping _Coerce
680 . mapping _Coerce
598−-- | Target bytes per second written.
682+-- | Target ops written per second.
599−duTargetWriteBytesPerSec :: Lens' DiskUtilization (Maybe Int32)
683+duTargetWriteOpsPerSecond :: Lens' DiskUtilization (Maybe Int32)
600−duTargetWriteBytesPerSec
684+duTargetWriteOpsPerSecond
601− = lens _duTargetWriteBytesPerSec
685+ = lens _duTargetWriteOpsPerSecond
602− (\ s a -> s{_duTargetWriteBytesPerSec = a})
686+ (\ s a -> s{_duTargetWriteOpsPerSecond = a})
603 . mapping _Coerce
687 . mapping _Coerce
605−-- | Target bytes per second read.
689+-- | Target bytes written per second.
606−duTargetReadBytesPerSec :: Lens' DiskUtilization (Maybe Int32)
690+duTargetWriteBytesPerSecond :: Lens' DiskUtilization (Maybe Int32)
607−duTargetReadBytesPerSec
691+duTargetWriteBytesPerSecond
608− = lens _duTargetReadBytesPerSec
692+ = lens _duTargetWriteBytesPerSecond
609− (\ s a -> s{_duTargetReadBytesPerSec = a})
693+ (\ s a -> s{_duTargetWriteBytesPerSecond = a})
610 . mapping _Coerce
694 . mapping _Coerce
612instance FromJSON DiskUtilization where
696instance FromJSON DiskUtilization where
@@ -614,23 +698,23 @@ instance FromJSON DiskUtilization where
614 = withObject "DiskUtilization"
698 = withObject "DiskUtilization"
616 DiskUtilization' <$>
700 DiskUtilization' <$>
617− (o .:? "targetWriteOpsPerSec") <*>
701+ (o .:? "targetReadBytesPerSecond") <*>
618− (o .:? "targetReadOpsPerSec")
702+ (o .:? "targetReadOpsPerSecond")
619− <*> (o .:? "targetWriteBytesPerSec")
703+ <*> (o .:? "targetWriteOpsPerSecond")
620− <*> (o .:? "targetReadBytesPerSec"))
704+ <*> (o .:? "targetWriteBytesPerSecond"))
622instance ToJSON DiskUtilization where
706instance ToJSON DiskUtilization where
623 toJSON DiskUtilization'{..}
707 toJSON DiskUtilization'{..}
625 (catMaybes
709 (catMaybes
626− [("targetWriteOpsPerSec" .=) <$>
710+ [("targetReadBytesPerSecond" .=) <$>
627− _duTargetWriteOpsPerSec,
711+ _duTargetReadBytesPerSecond,
628− ("targetReadOpsPerSec" .=) <$>
712+ ("targetReadOpsPerSecond" .=) <$>
629− _duTargetReadOpsPerSec,
713+ _duTargetReadOpsPerSecond,
630− ("targetWriteBytesPerSec" .=) <$>
714+ ("targetWriteOpsPerSecond" .=) <$>
631− _duTargetWriteBytesPerSec,
715+ _duTargetWriteOpsPerSecond,
632− ("targetReadBytesPerSec" .=) <$>
716+ ("targetWriteBytesPerSecond" .=) <$>
633− _duTargetReadBytesPerSec])
717+ _duTargetWriteBytesPerSecond])
635-- | The response message for Operations.ListOperations.
719-- | The response message for Operations.ListOperations.
@@ -684,8 +768,9 @@ instance ToJSON ListOperationsResponse where
684 [("nextPageToken" .=) <$> _lorNextPageToken,
768 [("nextPageToken" .=) <$> _lorNextPageToken,
685 ("operations" .=) <$> _lorOperations])
769 ("operations" .=) <$> _lorOperations])
687−-- | Configure health checking for the VM instances. Unhealthy VM instances
771+-- | Health checking configuration for VM instances. Unhealthy instances are
688−-- will be killed and replaced with new instances.
772+-- killed and replaced with new instances. Only applicable for instances in
773+-- App Engine flexible environment.
690-- /See:/ 'healthCheck' smart constructor.
775-- /See:/ 'healthCheck' smart constructor.
691data HealthCheck = HealthCheck'
776data HealthCheck = HealthCheck'
@@ -728,7 +813,7 @@ healthCheck =
728 , _hcUnhealthyThreshold = Nothing
813 , _hcUnhealthyThreshold = Nothing
731−-- | The number of consecutive successful health checks before receiving
816+-- | Number of consecutive successful health checks required before receiving
732-- traffic.
817-- traffic.
733hcHealthyThreshold :: Lens' HealthCheck (Maybe Word32)
818hcHealthyThreshold :: Lens' HealthCheck (Maybe Word32)
734hcHealthyThreshold
819hcHealthyThreshold
@@ -742,31 +827,32 @@ hcDisableHealthCheck
742 = lens _hcDisableHealthCheck
827 = lens _hcDisableHealthCheck
743 (\ s a -> s{_hcDisableHealthCheck = a})
828 (\ s a -> s{_hcDisableHealthCheck = a})
745−-- | The interval between health checks.
830+-- | Interval between health checks.
746hcCheckInterval :: Lens' HealthCheck (Maybe Text)
831hcCheckInterval :: Lens' HealthCheck (Maybe Text)
747hcCheckInterval
832hcCheckInterval
748 = lens _hcCheckInterval
833 = lens _hcCheckInterval
749 (\ s a -> s{_hcCheckInterval = a})
834 (\ s a -> s{_hcCheckInterval = a})
751−-- | The number of consecutive failed health checks before an instance is
836+-- | Number of consecutive failed health checks required before an instance
752−-- restarted.
837+-- is restarted.
753hcRestartThreshold :: Lens' HealthCheck (Maybe Word32)
838hcRestartThreshold :: Lens' HealthCheck (Maybe Word32)
754hcRestartThreshold
839hcRestartThreshold
755 = lens _hcRestartThreshold
840 = lens _hcRestartThreshold
756 (\ s a -> s{_hcRestartThreshold = a})
841 (\ s a -> s{_hcRestartThreshold = a})
757 . mapping _Coerce
842 . mapping _Coerce
759−-- | The host header to send when performing an HTTP health check (e.g.
844+-- | Host header to send when performing an HTTP health check. Example:
760−-- myapp.appspot.com)
845+-- \"myapp.appspot.com\"
761hcHost :: Lens' HealthCheck (Maybe Text)
846hcHost :: Lens' HealthCheck (Maybe Text)
762hcHost = lens _hcHost (\ s a -> s{_hcHost = a})
847hcHost = lens _hcHost (\ s a -> s{_hcHost = a})
764−-- | The amount of time before the health check is considered failed.
849+-- | Time before the health check is considered failed.
765hcTimeout :: Lens' HealthCheck (Maybe Text)
850hcTimeout :: Lens' HealthCheck (Maybe Text)
767 = lens _hcTimeout (\ s a -> s{_hcTimeout = a})
852 = lens _hcTimeout (\ s a -> s{_hcTimeout = a})
769−-- | The number of consecutive failed health checks before removing traffic.
854+-- | Number of consecutive failed health checks required before removing
770hcUnhealthyThreshold :: Lens' HealthCheck (Maybe Word32)
856hcUnhealthyThreshold :: Lens' HealthCheck (Maybe Word32)
771hcUnhealthyThreshold
857hcUnhealthyThreshold
772 = lens _hcUnhealthyThreshold
858 = lens _hcUnhealthyThreshold
@@ -798,7 +884,9 @@ instance ToJSON HealthCheck where
798 ("timeout" .=) <$> _hcTimeout,
884 ("timeout" .=) <$> _hcTimeout,
799 ("unhealthyThreshold" .=) <$> _hcUnhealthyThreshold])
885 ("unhealthyThreshold" .=) <$> _hcUnhealthyThreshold])
888+-- Endpoints](https:\/\/cloud.google.com\/appengine\/docs\/python\/endpoints\/)
801−-- | API Serving configuration for Cloud Endpoints.
889+-- configuration for API handlers.
803-- /See:/ 'apiConfigHandler' smart constructor.
891-- /See:/ 'apiConfigHandler' smart constructor.
804data APIConfigHandler = APIConfigHandler'
892data APIConfigHandler = APIConfigHandler'
@@ -833,12 +921,12 @@ apiConfigHandler =
833 , _achLogin = Nothing
921 , _achLogin = Nothing
836−-- | Specifies the path to the script from the application root directory.
924+-- | Path to the script from the application root directory.
837achScript :: Lens' APIConfigHandler (Maybe Text)
925achScript :: Lens' APIConfigHandler (Maybe Text)
839 = lens _achScript (\ s a -> s{_achScript = a})
927 = lens _achScript (\ s a -> s{_achScript = a})
841−-- | Configures whether security (HTTPS) should be enforced for this URL.
929+-- | Security (HTTPS) enforcement for this URL.
842achSecurityLevel :: Lens' APIConfigHandler (Maybe Text)
930achSecurityLevel :: Lens' APIConfigHandler (Maybe Text)
843achSecurityLevel
931achSecurityLevel
844 = lens _achSecurityLevel
932 = lens _achSecurityLevel
@@ -848,15 +936,15 @@ achSecurityLevel
848achURL :: Lens' APIConfigHandler (Maybe Text)
936achURL :: Lens' APIConfigHandler (Maybe Text)
849achURL = lens _achURL (\ s a -> s{_achURL = a})
937achURL = lens _achURL (\ s a -> s{_achURL = a})
851−-- | For users not logged in, how to handle access to resources with required
939+-- | Action to take when users access resources that require authentication.
852−-- login. Defaults to \"redirect\".
940+-- Defaults to \`redirect\`.
853achAuthFailAction :: Lens' APIConfigHandler (Maybe Text)
941achAuthFailAction :: Lens' APIConfigHandler (Maybe Text)
854achAuthFailAction
942achAuthFailAction
855 = lens _achAuthFailAction
943 = lens _achAuthFailAction
856 (\ s a -> s{_achAuthFailAction = a})
944 (\ s a -> s{_achAuthFailAction = a})
858−-- | What level of login is required to access this resource. Default is
946+-- | Level of login required to access this resource. Defaults to
859−-- \"optional\".
947+-- \`optional\`.
860achLogin :: Lens' APIConfigHandler (Maybe Text)
948achLogin :: Lens' APIConfigHandler (Maybe Text)
861achLogin = lens _achLogin (\ s a -> s{_achLogin = a})
949achLogin = lens _achLogin (\ s a -> s{_achLogin = a})
@@ -880,9 +968,8 @@ instance ToJSON APIConfigHandler where
880 ("authFailAction" .=) <$> _achAuthFailAction,
968 ("authFailAction" .=) <$> _achAuthFailAction,
881 ("login" .=) <$> _achLogin])
969 ("login" .=) <$> _achLogin])
883−-- | Environment variables made available to the application. Only returned
971+-- | Environment variables available to the application. Only returned in
884−-- in \`GET\` requests if \`view=FULL\` is set. May only be set on create
972+-- \`GET\` requests if \`view=FULL\` is set.
885−-- requests; once created, is immutable.
887-- /See:/ 'versionEnvVariables' smart constructor.
974-- /See:/ 'versionEnvVariables' smart constructor.
888newtype VersionEnvVariables = VersionEnvVariables'
975newtype VersionEnvVariables = VersionEnvVariables'
@@ -915,20 +1002,20 @@ instance FromJSON VersionEnvVariables where
915instance ToJSON VersionEnvVariables where
1002instance ToJSON VersionEnvVariables where
916 toJSON = toJSON . _vevAddtional
1003 toJSON = toJSON . _vevAddtional
918−-- | An Application contains the top-level configuration of an App Engine
1005+-- | An Application resource contains the top-level configuration of an App
919−-- application.
1006+-- Engine application.
921-- /See:/ 'application' smart constructor.
1008-- /See:/ 'application' smart constructor.
922data Application = Application'
1009data Application = Application'
923 { _aDefaultHostname :: !(Maybe Text)
1010 { _aDefaultHostname :: !(Maybe Text)
924 , _aDefaultCookieExpiration :: !(Maybe Text)
1011 , _aDefaultCookieExpiration :: !(Maybe Text)
925− , _aLocation :: !(Maybe Text)
926 , _aAuthDomain :: !(Maybe Text)
1012 , _aAuthDomain :: !(Maybe Text)
927 , _aCodeBucket :: !(Maybe Text)
1013 , _aCodeBucket :: !(Maybe Text)
928 , _aName :: !(Maybe Text)
1014 , _aName :: !(Maybe Text)
929 , _aDispatchRules :: !(Maybe [URLDispatchRule])
1015 , _aDispatchRules :: !(Maybe [URLDispatchRule])
930 , _aDefaultBucket :: !(Maybe Text)
1016 , _aDefaultBucket :: !(Maybe Text)
931 , _aId :: !(Maybe Text)
1017 , _aId :: !(Maybe Text)
1018+ , _aLocationId :: !(Maybe Text)
932 } deriving (Eq,Show,Data,Typeable,Generic)
1019 } deriving (Eq,Show,Data,Typeable,Generic)
934-- | Creates a value of 'Application' with the minimum fields required to make a request.
1021-- | Creates a value of 'Application' with the minimum fields required to make a request.
@@ -939,8 +1026,6 @@ data Application = Application'
940-- * 'aDefaultCookieExpiration'
1027-- * 'aDefaultCookieExpiration'
944-- * 'aAuthDomain'
1029-- * 'aAuthDomain'
946-- * 'aCodeBucket'
1031-- * 'aCodeBucket'
@@ -952,66 +1037,58 @@ data Application = Application'
952-- * 'aDefaultBucket'
1037-- * 'aDefaultBucket'
954-- * 'aId'
1039-- * 'aId'
955application
1042application
956 :: Application
1043 :: Application
957application =
1044application =
958 Application'
1045 Application'
959 { _aDefaultHostname = Nothing
1046 { _aDefaultHostname = Nothing
960 , _aDefaultCookieExpiration = Nothing
1047 , _aDefaultCookieExpiration = Nothing
961− , _aLocation = Nothing
962 , _aAuthDomain = Nothing
1048 , _aAuthDomain = Nothing
963 , _aCodeBucket = Nothing
1049 , _aCodeBucket = Nothing
964 , _aName = Nothing
1050 , _aName = Nothing
965 , _aDispatchRules = Nothing
1051 , _aDispatchRules = Nothing
966 , _aDefaultBucket = Nothing
1052 , _aDefaultBucket = Nothing
967 , _aId = Nothing
1053 , _aId = Nothing
1054+ , _aLocationId = Nothing
970−-- | The hostname used to reach the application, as resolved by App Engine.
1057+-- | Hostname used to reach this application, as resolved by App Engine.
971-- \'OutputOnly
1058-- \'OutputOnly
972aDefaultHostname :: Lens' Application (Maybe Text)
1059aDefaultHostname :: Lens' Application (Maybe Text)
973aDefaultHostname
1060aDefaultHostname
974 = lens _aDefaultHostname
1061 = lens _aDefaultHostname
975 (\ s a -> s{_aDefaultHostname = a})
1062 (\ s a -> s{_aDefaultHostname = a})
977−-- | Determines the cookie expiration policy for the application.
1064+-- | Cookie expiration policy for this application. \'OutputOnly
979aDefaultCookieExpiration :: Lens' Application (Maybe Text)
1065aDefaultCookieExpiration :: Lens' Application (Maybe Text)
980aDefaultCookieExpiration
1066aDefaultCookieExpiration
981 = lens _aDefaultCookieExpiration
1067 = lens _aDefaultCookieExpiration
982 (\ s a -> s{_aDefaultCookieExpiration = a})
1068 (\ s a -> s{_aDefaultCookieExpiration = a})
984−-- | The location from which the application will be run. Application
985−-- instances will run out of data centers in the chosen location and all of
986−-- the application\'s End User Content will be stored at rest. The default
987−-- is \"us-central\". Choices are: \"us-central\" - Central US
988−-- \"europe-west\" - Western Europe \"us-east1\" - Eastern US
989−aLocation :: Lens' Application (Maybe Text)
991− = lens _aLocation (\ s a -> s{_aLocation = a})
993−-- | If set, only users from the specified Google Apps authentication domain
1070+-- | Google Apps authentication domain that controls which users can access
994−-- may access the application. If not set, any Google Account may access
1071+-- this application. Defaults to open access for any Google Account.
996aAuthDomain :: Lens' Application (Maybe Text)
1072aAuthDomain :: Lens' Application (Maybe Text)
997aAuthDomain
1073aAuthDomain
998 = lens _aAuthDomain (\ s a -> s{_aAuthDomain = a})
1074 = lens _aAuthDomain (\ s a -> s{_aAuthDomain = a})
1000−-- | A Google Cloud Storage bucket which can be used for storing files
1076+-- | Google Cloud Storage bucket that can be used for storing files
1001−-- associated with an application. This bucket is associated with the
1077+-- associated with this application. This bucket is associated with the
1002-- application and can be used by the gcloud deployment commands.
1078-- application and can be used by the gcloud deployment commands.
1003-- \'OutputOnly
1079-- \'OutputOnly
1004aCodeBucket :: Lens' Application (Maybe Text)
1080aCodeBucket :: Lens' Application (Maybe Text)
1005aCodeBucket
1081aCodeBucket
1006 = lens _aCodeBucket (\ s a -> s{_aCodeBucket = a})
1082 = lens _aCodeBucket (\ s a -> s{_aCodeBucket = a})
1008−-- | The full path to the application in the API. Example: \"apps\/myapp\".
1084+-- | Full path to the Application resource in the API. Example:
1009−-- \'OutputOnly
1085+-- \`apps\/myapp\`. \'OutputOnly
1010aName :: Lens' Application (Maybe Text)
1086aName :: Lens' Application (Maybe Text)
1011aName = lens _aName (\ s a -> s{_aName = a})
1087aName = lens _aName (\ s a -> s{_aName = a})
1013−-- | HTTP path dispatch rules for requests to the app that do not explicitly
1089+-- | HTTP path dispatch rules for requests to the application that do not
1014−-- target a service or version. The rules are order-dependent. \'OutputOnly
1090+-- explicitly target a service or version. Rules are order-dependent.
1015aDispatchRules :: Lens' Application [URLDispatchRule]
1092aDispatchRules :: Lens' Application [URLDispatchRule]
1016aDispatchRules
1093aDispatchRules
1017 = lens _aDispatchRules
1094 = lens _aDispatchRules
@@ -1019,17 +1096,28 @@ aDispatchRules
1019 . _Default
1096 . _Default
1020 . _Coerce
1097 . _Coerce
1022−-- | A Google Cloud Storage bucket which can be used by the application to
1099+-- | Google Cloud Storage bucket that can be used by this application to
1023-- store content. \'OutputOnly
1100-- store content. \'OutputOnly
1024aDefaultBucket :: Lens' Application (Maybe Text)
1101aDefaultBucket :: Lens' Application (Maybe Text)
1025aDefaultBucket
1102aDefaultBucket
1026 = lens _aDefaultBucket
1103 = lens _aDefaultBucket
1027 (\ s a -> s{_aDefaultBucket = a})
1104 (\ s a -> s{_aDefaultBucket = a})
1106+-- | Identifier of the Application resource. This identifier is equivalent to
1107+-- the project ID of the Google Cloud Platform project where you want to
1029−-- | The relative name\/path of the application. Example: \"myapp\".
1108+-- deploy your application. Example: \`myapp\`.
1030aId :: Lens' Application (Maybe Text)
1109aId :: Lens' Application (Maybe Text)
1031aId = lens _aId (\ s a -> s{_aId = a})
1110aId = lens _aId (\ s a -> s{_aId = a})
1112+-- | Location from which this application will be run. Application instances
1113+-- 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
1117+aLocationId :: Lens' Application (Maybe Text)
1119+ = lens _aLocationId (\ s a -> s{_aLocationId = a})
1033instance FromJSON Application where
1121instance FromJSON Application where
1034 parseJSON
1122 parseJSON
1035 = withObject "Application"
1123 = withObject "Application"
@@ -1037,13 +1125,13 @@ instance FromJSON Application where
1037 Application' <$>
1125 Application' <$>
1038 (o .:? "defaultHostname") <*>
1126 (o .:? "defaultHostname") <*>
1039 (o .:? "defaultCookieExpiration")
1127 (o .:? "defaultCookieExpiration")
1040− <*> (o .:? "location")
1041 <*> (o .:? "authDomain")
1128 <*> (o .:? "authDomain")
1042 <*> (o .:? "codeBucket")
1129 <*> (o .:? "codeBucket")
1043 <*> (o .:? "name")
1130 <*> (o .:? "name")
1044 <*> (o .:? "dispatchRules" .!= mempty)
1131 <*> (o .:? "dispatchRules" .!= mempty)
1045 <*> (o .:? "defaultBucket")
1132 <*> (o .:? "defaultBucket")
1046− <*> (o .:? "id"))
1133+ <*> (o .:? "id")
1134+ <*> (o .:? "locationId"))
1048instance ToJSON Application where
1136instance ToJSON Application where
1049 toJSON Application'{..}
1137 toJSON Application'{..}
@@ -1052,15 +1140,16 @@ instance ToJSON Application where
1052 [("defaultHostname" .=) <$> _aDefaultHostname,
1140 [("defaultHostname" .=) <$> _aDefaultHostname,
1053 ("defaultCookieExpiration" .=) <$>
1141 ("defaultCookieExpiration" .=) <$>
1054 _aDefaultCookieExpiration,
1142 _aDefaultCookieExpiration,
1055− ("location" .=) <$> _aLocation,
1056 ("authDomain" .=) <$> _aAuthDomain,
1143 ("authDomain" .=) <$> _aAuthDomain,
1057 ("codeBucket" .=) <$> _aCodeBucket,
1144 ("codeBucket" .=) <$> _aCodeBucket,
1058 ("name" .=) <$> _aName,
1145 ("name" .=) <$> _aName,
1059 ("dispatchRules" .=) <$> _aDispatchRules,
1146 ("dispatchRules" .=) <$> _aDispatchRules,
1060 ("defaultBucket" .=) <$> _aDefaultBucket,
1147 ("defaultBucket" .=) <$> _aDefaultBucket,
1061− ("id" .=) <$> _aId])
1148+ ("id" .=) <$> _aId,
1149+ ("locationId" .=) <$> _aLocationId])
1063−-- | Beta settings supplied to the application via metadata.
1151+-- | Metadata settings that are supplied to this version to enable beta
1152+-- runtime features.
1065-- /See:/ 'versionBetaSettings' smart constructor.
1154-- /See:/ 'versionBetaSettings' smart constructor.
1066newtype VersionBetaSettings = VersionBetaSettings'
1155newtype VersionBetaSettings = VersionBetaSettings'
@@ -1093,13 +1182,13 @@ instance FromJSON VersionBetaSettings where
1093instance ToJSON VersionBetaSettings where
1182instance ToJSON VersionBetaSettings where
1094 toJSON = toJSON . _vbsAddtional
1183 toJSON = toJSON . _vbsAddtional
1096−-- | A service is a logical component of an application that can share state
1185+-- | A Service resource is a logical component of an application that can
1097−-- and communicate in a secure fashion with other services. For example, an
1186+-- share state and communicate in a secure fashion with other services. For
1098−-- application that handles customer requests might include separate
1187+-- example, an application that handles customer requests might include
1099−-- services to handle other tasks such as API requests from mobile devices
1188+-- separate services to handle tasks such as backend data analysis or API
1100−-- or backend data analysis. Each service has a collection of versions that
1189+-- requests from mobile devices. Each service has a collection of versions
1101−-- define a specific set of code used to implement the functionality of
1190+-- that define a specific set of code used to implement the functionality
1102−-- that service.
1191+-- of that service.
1104-- /See:/ 'service' smart constructor.
1193-- /See:/ 'service' smart constructor.
1105data Service = Service'
1194data Service = Service'
@@ -1126,18 +1215,18 @@ service =
1126 , _sId = Nothing
1215 , _sId = Nothing
1129−-- | A mapping that defines fractional HTTP traffic diversion to different
1218+-- | Mapping that defines fractional HTTP traffic diversion to different
1130-- versions within the service.
1219-- versions within the service.
1131sSplit :: Lens' Service (Maybe TrafficSplit)
1220sSplit :: Lens' Service (Maybe TrafficSplit)
1132sSplit = lens _sSplit (\ s a -> s{_sSplit = a})
1221sSplit = lens _sSplit (\ s a -> s{_sSplit = a})
1134−-- | The full path to the Service resource in the API. Example:
1223+-- | Full path to the Service resource in the API. Example:
1135−-- \"apps\/myapp\/services\/default\" \'OutputOnly
1224+-- \`apps\/myapp\/services\/default\`. \'OutputOnly
1136sName :: Lens' Service (Maybe Text)
1225sName :: Lens' Service (Maybe Text)
1137sName = lens _sName (\ s a -> s{_sName = a})
1226sName = lens _sName (\ s a -> s{_sName = a})
1139−-- | The relative name\/path of the service within the application. Example:
1228+-- | Relative name of the service within the application. Example:
1140−-- \"default\" \'OutputOnly
1229+-- \`default\`. \'OutputOnly
1141sId :: Lens' Service (Maybe Text)
1230sId :: Lens' Service (Maybe Text)
1142sId = lens _sId (\ s a -> s{_sId = a})
1231sId = lens _sId (\ s a -> s{_sId = a})
@@ -1155,6 +1244,78 @@ instance ToJSON Service where
1155 [("split" .=) <$> _sSplit, ("name" .=) <$> _sName,
1244 [("split" .=) <$> _sSplit, ("name" .=) <$> _sName,
1156 ("id" .=) <$> _sId])
1245 ("id" .=) <$> _sId])
1247+-- | A resource that represents Google Cloud Platform location.
1249+-- /See:/ 'location' smart constructor.
1250+data Location = Location'
1251+ { _locName :: !(Maybe Text)
1252+ , _locMetadata :: !(Maybe LocationSchema)
1253+ , _locLabels :: !(Maybe LocationLabels)
1254+ , _locLocationId :: !(Maybe Text)
1255+ } deriving (Eq,Show,Data,Typeable,Generic)
1257+-- | Creates a value of 'Location' with the minimum fields required to make a request.
1259+-- Use one of the following lenses to modify other fields as desired:
1267+-- * 'locLocationId'
1272+ { _locName = Nothing
1273+ , _locMetadata = Nothing
1274+ , _locLabels = Nothing
1275+ , _locLocationId = Nothing
1278+-- | Resource name for the location, which may vary between implementations.
1279+-- For example: \`\"projects\/example-project\/locations\/us-east1\"\`
1280+locName :: Lens' Location (Maybe Text)
1281+locName = lens _locName (\ s a -> s{_locName = a})
1283+-- | Service-specific metadata. For example the available capacity at the
1285+locMetadata :: Lens' Location (Maybe LocationSchema)
1287+ = lens _locMetadata (\ s a -> s{_locMetadata = a})
1289+-- | Cross-service attributes for the location. For example
1290+-- {\"cloud.googleapis.com\/region\": \"us-east1\"}
1291+locLabels :: Lens' Location (Maybe LocationLabels)
1293+ = lens _locLabels (\ s a -> s{_locLabels = a})
1295+-- | The canonical id for this location. For example: \`\"us-east1\"\`.
1296+locLocationId :: Lens' Location (Maybe Text)
1298+ = lens _locLocationId
1299+ (\ s a -> s{_locLocationId = a})
1301+instance FromJSON Location where
1303+ = withObject "Location"
1306+ (o .:? "name") <*> (o .:? "metadata") <*>
1308+ <*> (o .:? "locationId"))
1310+instance ToJSON Location where
1311+ toJSON Location'{..}
1314+ [("name" .=) <$> _locName,
1315+ ("metadata" .=) <$> _locMetadata,
1316+ ("labels" .=) <$> _locLabels,
1317+ ("locationId" .=) <$> _locLocationId])
1158-- | This resource represents a long-running operation that is the result of
1319-- | This resource represents a long-running operation that is the result of
1159-- a network API call.
1320-- a network API call.
@@ -1246,6 +1407,58 @@ instance ToJSON Operation where
1246 ("name" .=) <$> _oName,
1407 ("name" .=) <$> _oName,
1247 ("metadata" .=) <$> _oMetadata])
1408 ("metadata" .=) <$> _oMetadata])
1410+-- | The zip file information for a zip deployment.
1412+-- /See:/ 'zipInfo' smart constructor.
1413+data ZipInfo = ZipInfo'
1414+ { _ziFilesCount :: !(Maybe (Textual Int32))
1415+ , _ziSourceURL :: !(Maybe Text)
1416+ } deriving (Eq,Show,Data,Typeable,Generic)
1418+-- | Creates a value of 'ZipInfo' with the minimum fields required to make a request.
1420+-- Use one of the following lenses to modify other fields as desired:
1429+ { _ziFilesCount = Nothing
1430+ , _ziSourceURL = Nothing
1433+-- | An estimate of the number of files in a zip for a zip deployment. If
1434+-- set, must be greater than or equal to the actual number of files. Used
1435+-- for optimizing performance; if not provided, deployment may be slow.
1436+ziFilesCount :: Lens' ZipInfo (Maybe Int32)
1438+ = lens _ziFilesCount (\ s a -> s{_ziFilesCount = a})
1441+-- | URL of the zip file to deploy from. Must be a URL to a resource in
1442+-- Google Cloud Storage in the form
1443+-- \'http(s):\/\/storage.googleapis.com\/\\\/\\\'.
1444+ziSourceURL :: Lens' ZipInfo (Maybe Text)
1446+ = lens _ziSourceURL (\ s a -> s{_ziSourceURL = a})
1448+instance FromJSON ZipInfo where
1450+ = withObject "ZipInfo"
1453+ (o .:? "filesCount") <*> (o .:? "sourceUrl"))
1455+instance ToJSON ZipInfo where
1456+ toJSON ZipInfo'{..}
1459+ [("filesCount" .=) <$> _ziFilesCount,
1460+ ("sourceUrl" .=) <$> _ziSourceURL])
1249-- | Rules to match an HTTP request and dispatch that request to a service.
1462-- | Rules to match an HTTP request and dispatch that request to a service.
1251-- /See:/ 'urlDispatchRule' smart constructor.
1464-- /See:/ 'urlDispatchRule' smart constructor.
@@ -1273,21 +1486,21 @@ urlDispatchRule =
1273 , _udrDomain = Nothing
1486 , _udrDomain = Nothing
1276−-- | The pathname within the host. This must start with a \'\/\'. A single
1489+-- | Pathname within the host. Must start with a \"\`\/\`\". A single
1277−-- \'*\' (glob) can be included at the end of the path. The sum of the
1490+-- \"\`*\`\" can be included at the end of the path. The sum of the lengths
1278−-- lengths of the domain and path may not exceed 100 characters.
1491+-- of the domain and path may not exceed 100 characters.
1279udrPath :: Lens' URLDispatchRule (Maybe Text)
1492udrPath :: Lens' URLDispatchRule (Maybe Text)
1280udrPath = lens _udrPath (\ s a -> s{_udrPath = a})
1493udrPath = lens _udrPath (\ s a -> s{_udrPath = a})
1282−-- | The resource id of a Service in this application that should service the
1495+-- | Resource ID of a service in this application that should serve the
1283−-- matched request. The Service must already exist. Example: \"default\".
1496+-- matched request. The service must already exist. Example: \`default\`.
1284udrService :: Lens' URLDispatchRule (Maybe Text)
1497udrService :: Lens' URLDispatchRule (Maybe Text)
1285udrService
1498udrService
1286 = lens _udrService (\ s a -> s{_udrService = a})
1499 = lens _udrService (\ s a -> s{_udrService = a})
1288−-- | The domain name to match on. Supports \'*\' (glob) wildcarding on the
1501+-- | Domain name to match against. The wildcard \"\`*\`\" is supported if
1289−-- left-hand side of a \'.\'. If empty, all domains will be matched (the
1502+-- specified before a period: \"\`*.\`\". Defaults to matching all domains:
1290−-- same as \'*\').
1503+-- \"\`*\`\".
1291udrDomain :: Lens' URLDispatchRule (Maybe Text)
1504udrDomain :: Lens' URLDispatchRule (Maybe Text)
1292udrDomain
1505udrDomain
1293 = lens _udrDomain (\ s a -> s{_udrDomain = a})
1506 = lens _udrDomain (\ s a -> s{_udrDomain = a})
@@ -1337,7 +1550,7 @@ lvrNextPageToken
1337 = lens _lvrNextPageToken
1550 = lens _lvrNextPageToken
1338 (\ s a -> s{_lvrNextPageToken = a})
1551 (\ s a -> s{_lvrNextPageToken = a})
1340−-- | The versions belonging to the requested application service.
1553+-- | The versions belonging to the requested service.
1341lvrVersions :: Lens' ListVersionsResponse [Version]
1554lvrVersions :: Lens' ListVersionsResponse [Version]
1342lvrVersions
1555lvrVersions
1343 = lens _lvrVersions (\ s a -> s{_lvrVersions = a}) .
1556 = lens _lvrVersions (\ s a -> s{_lvrVersions = a}) .
@@ -1359,7 +1572,8 @@ instance ToJSON ListVersionsResponse where
1359 [("nextPageToken" .=) <$> _lvrNextPageToken,
1572 [("nextPageToken" .=) <$> _lvrNextPageToken,
1360 ("versions" .=) <$> _lvrVersions])
1573 ("versions" .=) <$> _lvrVersions])
1362−-- | A single source file which is part of the application to be deployed.
1575+-- | Single source file that is part of the version to be deployed. Each
1576+-- source file that is deployed must be specified separately.
1364-- /See:/ 'fileInfo' smart constructor.
1578-- /See:/ 'fileInfo' smart constructor.
1365data FileInfo = FileInfo'
1579data FileInfo = FileInfo'
@@ -1386,18 +1600,18 @@ fileInfo =
1386 , _fiSourceURL = Nothing
1600 , _fiSourceURL = Nothing
1389−-- | The SHA1 (160 bits) hash of the file in hex.
1603+-- | The SHA1 hash of the file, in hex.
1390fiSha1Sum :: Lens' FileInfo (Maybe Text)
1604fiSha1Sum :: Lens' FileInfo (Maybe Text)
1391fiSha1Sum
1605fiSha1Sum
1392 = lens _fiSha1Sum (\ s a -> s{_fiSha1Sum = a})
1606 = lens _fiSha1Sum (\ s a -> s{_fiSha1Sum = a})
1394−-- | The MIME type of the file; if unspecified, the value from Google Cloud
1608+-- | The MIME type of the file. Defaults to the value from Google Cloud
1395−-- Storage will be used.
1609+-- Storage.
1396fiMimeType :: Lens' FileInfo (Maybe Text)
1610fiMimeType :: Lens' FileInfo (Maybe Text)
1397fiMimeType
1611fiMimeType
1398 = lens _fiMimeType (\ s a -> s{_fiMimeType = a})
1612 = lens _fiMimeType (\ s a -> s{_fiMimeType = a})
1400−-- | The URL source to use to fetch this file. Must be a URL to a resource in
1614+-- | URL source to use to fetch this file. Must be a URL to a resource in
1401-- Google Cloud Storage in the form
1615-- Google Cloud Storage in the form
1402-- \'http(s):\/\/storage.googleapis.com\/\\\/\\\'.
1616-- \'http(s):\/\/storage.googleapis.com\/\\\/\\\'.
1403fiSourceURL :: Lens' FileInfo (Maybe Text)
1617fiSourceURL :: Lens' FileInfo (Maybe Text)
@@ -1420,8 +1634,7 @@ instance ToJSON FileInfo where
1420 ("mimeType" .=) <$> _fiMimeType,
1634 ("mimeType" .=) <$> _fiMimeType,
1421 ("sourceUrl" .=) <$> _fiSourceURL])
1635 ("sourceUrl" .=) <$> _fiSourceURL])
1423−-- | Automatic scaling is the scaling policy that App Engine has used since
1424−-- its inception. It is based on request rate, response latencies, and
1637+-- | Automatic scaling is based on request rate, response latencies, and
1425-- other application metrics.
1638-- other application metrics.
1427-- /See:/ 'automaticScaling' smart constructor.
1640-- /See:/ 'automaticScaling' smart constructor.
@@ -1491,16 +1704,15 @@ asNetworkUtilization
1491 = lens _asNetworkUtilization
1704 = lens _asNetworkUtilization
1492 (\ s a -> s{_asNetworkUtilization = a})
1705 (\ s a -> s{_asNetworkUtilization = a})
1494−-- | Max number of instances that App Engine should start to handle requests.
1707+-- | Maximum number of instances that should be started to handle requests.
1495asMaxTotalInstances :: Lens' AutomaticScaling (Maybe Int32)
1708asMaxTotalInstances :: Lens' AutomaticScaling (Maybe Int32)
1496asMaxTotalInstances
1709asMaxTotalInstances
1497 = lens _asMaxTotalInstances
1710 = lens _asMaxTotalInstances
1498 (\ s a -> s{_asMaxTotalInstances = a})
1711 (\ s a -> s{_asMaxTotalInstances = a})
1499 . mapping _Coerce
1712 . mapping _Coerce
1501−-- | The minimum number of idle instances that App Engine should maintain for
1714+-- | Minimum number of idle instances that should be maintained for this
1502−-- this version. Only applies to the default version of a service, since
1715+-- version. Only applicable for the default version of a service.
1503−-- other versions are not expected to receive significant traffic.
1504asMinIdleInstances :: Lens' AutomaticScaling (Maybe Int32)
1716asMinIdleInstances :: Lens' AutomaticScaling (Maybe Int32)
1505asMinIdleInstances
1717asMinIdleInstances
1506 = lens _asMinIdleInstances
1718 = lens _asMinIdleInstances
@@ -1513,8 +1725,8 @@ asDiskUtilization
1513 = lens _asDiskUtilization
1725 = lens _asDiskUtilization
1514 (\ s a -> s{_asDiskUtilization = a})
1726 (\ s a -> s{_asDiskUtilization = a})
1516−-- | The minimum amount of time that App Engine should allow a request to
1728+-- | Minimum amount of time a request should wait in the pending queue before
1517−-- wait in the pending queue before starting a new instance to handle it.
1729+-- starting a new instance to handle it.
1518asMinPendingLatency :: Lens' AutomaticScaling (Maybe Text)
1730asMinPendingLatency :: Lens' AutomaticScaling (Maybe Text)
1519asMinPendingLatency
1731asMinPendingLatency
1520 = lens _asMinPendingLatency
1732 = lens _asMinPendingLatency
@@ -1526,34 +1738,34 @@ asCPUUtilization
1526 = lens _asCPUUtilization
1738 = lens _asCPUUtilization
1527 (\ s a -> s{_asCPUUtilization = a})
1739 (\ s a -> s{_asCPUUtilization = a})
1529−-- | The maximum number of idle instances that App Engine should maintain for
1741+-- | Maximum number of idle instances that should be maintained for this
1530−-- this version.
1742+-- version.
1531asMaxIdleInstances :: Lens' AutomaticScaling (Maybe Int32)
1743asMaxIdleInstances :: Lens' AutomaticScaling (Maybe Int32)
1532asMaxIdleInstances
1744asMaxIdleInstances
1533 = lens _asMaxIdleInstances
1745 = lens _asMaxIdleInstances
1534 (\ s a -> s{_asMaxIdleInstances = a})
1746 (\ s a -> s{_asMaxIdleInstances = a})
1535 . mapping _Coerce
1747 . mapping _Coerce
1537−-- | Minimum number of instances that App Engine should maintain.
1749+-- | Minimum number of instances that should be maintained for this version.
1538asMinTotalInstances :: Lens' AutomaticScaling (Maybe Int32)
1750asMinTotalInstances :: Lens' AutomaticScaling (Maybe Int32)
1539asMinTotalInstances
1751asMinTotalInstances
1540 = lens _asMinTotalInstances
1752 = lens _asMinTotalInstances
1541 (\ s a -> s{_asMinTotalInstances = a})
1753 (\ s a -> s{_asMinTotalInstances = a})
1542 . mapping _Coerce
1754 . mapping _Coerce
1544−-- | The number of concurrent requests an automatic scaling instance can
1756+-- | Number of concurrent requests an automatic scaling instance can accept
1545−-- accept before the scheduler spawns a new instance. Default value is
1757+-- before the scheduler spawns a new instance. Defaults to a
1546−-- chosen based on the runtime.
1758+-- runtime-specific value.
1547asMaxConcurrentRequests :: Lens' AutomaticScaling (Maybe Int32)
1759asMaxConcurrentRequests :: Lens' AutomaticScaling (Maybe Int32)
1548asMaxConcurrentRequests
1760asMaxConcurrentRequests
1549 = lens _asMaxConcurrentRequests
1761 = lens _asMaxConcurrentRequests
1550 (\ s a -> s{_asMaxConcurrentRequests = a})
1762 (\ s a -> s{_asMaxConcurrentRequests = a})
1551 . mapping _Coerce
1763 . mapping _Coerce
1553−-- | The amount of time that the
1765+-- | Amount of time that the
1554-- [Autoscaler](https:\/\/cloud.google.com\/compute\/docs\/autoscaler\/)
1766-- [Autoscaler](https:\/\/cloud.google.com\/compute\/docs\/autoscaler\/)
1555−-- should wait between changes to the number of virtual machines. Applies
1767+-- should wait between changes to the number of virtual machines. Only
1556−-- only to the VM runtime.
1768+-- applicable for VM runtimes.
1557asCoolDownPeriod :: Lens' AutomaticScaling (Maybe Text)
1769asCoolDownPeriod :: Lens' AutomaticScaling (Maybe Text)
1558asCoolDownPeriod
1770asCoolDownPeriod
1559 = lens _asCoolDownPeriod
1771 = lens _asCoolDownPeriod
@@ -1565,8 +1777,8 @@ asRequestUtilization
1565 = lens _asRequestUtilization
1777 = lens _asRequestUtilization
1566 (\ s a -> s{_asRequestUtilization = a})
1778 (\ s a -> s{_asRequestUtilization = a})
1568−-- | The maximum amount of time that App Engine should allow a request to
1780+-- | Maximum amount of time that a request should wait in the pending queue
1569−-- wait in the pending queue before starting a new instance to handle it.
1781+-- before starting a new instance to handle it.
1570asMaxPendingLatency :: Lens' AutomaticScaling (Maybe Text)
1782asMaxPendingLatency :: Lens' AutomaticScaling (Maybe Text)
1571asMaxPendingLatency
1783asMaxPendingLatency
1572 = lens _asMaxPendingLatency
1784 = lens _asMaxPendingLatency
@@ -1643,30 +1855,29 @@ operationMetadataV1Beta5 =
1643 , _omvbTarget = Nothing
1855 , _omvbTarget = Nothing
1646−-- | Timestamp that this operation was received. \'OutputOnly
1858+-- | Timestamp that this operation was created. \'OutputOnly
1647omvbInsertTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1859omvbInsertTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1648omvbInsertTime
1860omvbInsertTime
1649 = lens _omvbInsertTime
1861 = lens _omvbInsertTime
1650 (\ s a -> s{_omvbInsertTime = a})
1862 (\ s a -> s{_omvbInsertTime = a})
1652−-- | The user who requested this operation. \'OutputOnly
1864+-- | User who requested this operation. \'OutputOnly
1653omvbUser :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1865omvbUser :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1654omvbUser = lens _omvbUser (\ s a -> s{_omvbUser = a})
1866omvbUser = lens _omvbUser (\ s a -> s{_omvbUser = a})
1656−-- | API method name that initiated the operation. Example:
1868+-- | API method name that initiated this operation. Example:
1657−-- \"google.appengine.v1beta5.Version.CreateVersion\". \'OutputOnly
1869+-- \`google.appengine.v1beta5.Version.CreateVersion\`. \'OutputOnly
1658omvbMethod :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1870omvbMethod :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1659omvbMethod
1871omvbMethod
1660 = lens _omvbMethod (\ s a -> s{_omvbMethod = a})
1872 = lens _omvbMethod (\ s a -> s{_omvbMethod = a})
1662−-- | Timestamp that this operation was completed. (Not present if the
1874+-- | Timestamp that this operation completed. \'OutputOnly
1663−-- operation is still in progress.) \'OutputOnly
1664omvbEndTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1875omvbEndTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1665omvbEndTime
1876omvbEndTime
1666 = lens _omvbEndTime (\ s a -> s{_omvbEndTime = a})
1877 = lens _omvbEndTime (\ s a -> s{_omvbEndTime = a})
1668−-- | Resource that this operation is acting on. Example:
1879+-- | Name of the resource that this operation is acting on. Example:
1669−-- \"apps\/myapp\/services\/default\". \'OutputOnly
1880+-- \`apps\/myapp\/services\/default\`. \'OutputOnly
1670omvbTarget :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1881omvbTarget :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1671omvbTarget
1882omvbTarget
1672 = lens _omvbTarget (\ s a -> s{_omvbTarget = a})
1883 = lens _omvbTarget (\ s a -> s{_omvbTarget = a})
@@ -1691,7 +1902,7 @@ instance ToJSON OperationMetadataV1Beta5 where
1691 ("endTime" .=) <$> _omvbEndTime,
1902 ("endTime" .=) <$> _omvbEndTime,
1692 ("target" .=) <$> _omvbTarget])
1903 ("target" .=) <$> _omvbTarget])
1694−-- | Use Google Cloud Endpoints to handle requests.
1905+-- | Uses Google Cloud Endpoints to handle requests.
1696-- /See:/ 'apiEndpointHandler' smart constructor.
1907-- /See:/ 'apiEndpointHandler' smart constructor.
1697newtype APIEndpointHandler = APIEndpointHandler'
1908newtype APIEndpointHandler = APIEndpointHandler'
@@ -1710,7 +1921,7 @@ apiEndpointHandler =
1710 { _aehScriptPath = Nothing
1921 { _aehScriptPath = Nothing
1713−-- | Specifies the path to the script from the application root directory.
1924+-- | Path to the script from the application root directory.
1714aehScriptPath :: Lens' APIEndpointHandler (Maybe Text)
1925aehScriptPath :: Lens' APIEndpointHandler (Maybe Text)
1715aehScriptPath
1926aehScriptPath
1716 = lens _aehScriptPath
1927 = lens _aehScriptPath
@@ -1745,7 +1956,7 @@ statusDetailsItem pSdiAddtional_ =
1745 { _sdiAddtional = _Coerce # pSdiAddtional_
1956 { _sdiAddtional = _Coerce # pSdiAddtional_
1748−-- | Properties of the object. Contains field \'ype with type URL.
1959+-- | Properties of the object. Contains field \'type with type URL.
1749sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
1960sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
1750sdiAddtional
1961sdiAddtional
1751 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
1962 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
@@ -1759,7 +1970,7 @@ instance FromJSON StatusDetailsItem where
1759instance ToJSON StatusDetailsItem where
1970instance ToJSON StatusDetailsItem where
1760 toJSON = toJSON . _sdiAddtional
1971 toJSON = toJSON . _sdiAddtional
1762−-- | Used to specify extra network settings (for VM runtimes only).
1973+-- | Extra network settings. Only applicable for VM runtimes.
1764-- /See:/ 'network' smart constructor.
1975-- /See:/ 'network' smart constructor.
1765data Network = Network'
1976data Network = Network'
@@ -1786,8 +1997,8 @@ network =
1786 , _nName = Nothing
1997 , _nName = Nothing
1789−-- | A list of ports (or port pairs) to forward from the VM into the app
2000+-- | List of ports, or port pairs, to forward from the virtual machine to the
1790−-- container.
2001+-- application container.
1791nForwardedPorts :: Lens' Network [Text]
2002nForwardedPorts :: Lens' Network [Text]
1792nForwardedPorts
2003nForwardedPorts
1793 = lens _nForwardedPorts
2004 = lens _nForwardedPorts
@@ -1795,14 +2006,13 @@ nForwardedPorts
1795 . _Default
2006 . _Default
1796 . _Coerce
2007 . _Coerce
1798−-- | A tag to apply to the VM instance during creation.
2009+-- | Tag to apply to the VM instance during creation.
1799nInstanceTag :: Lens' Network (Maybe Text)
2010nInstanceTag :: Lens' Network (Maybe Text)
1800nInstanceTag
2011nInstanceTag
1801 = lens _nInstanceTag (\ s a -> s{_nInstanceTag = a})
2012 = lens _nInstanceTag (\ s a -> s{_nInstanceTag = a})
1803−-- | The Google Compute Engine network where the VMs will be created. If not
2014+-- | Google Cloud Platform network where the virtual machines are created.
1804−-- specified, or empty, the network named \"default\" will be used. (The
1805−-- short name should be specified, not the resource path.)
2015+-- Specify the short name, not the resource path. Defaults to \`default\`.
1806nName :: Lens' Network (Maybe Text)
2016nName :: Lens' Network (Maybe Text)
1807nName = lens _nName (\ s a -> s{_nName = a})
2017nName = lens _nName (\ s a -> s{_nName = a})
@@ -1823,6 +2033,27 @@ instance ToJSON Network where
1823 ("instanceTag" .=) <$> _nInstanceTag,
2033 ("instanceTag" .=) <$> _nInstanceTag,
1824 ("name" .=) <$> _nName])
2034 ("name" .=) <$> _nName])
2036+-- | Request message for \`Instances.DebugInstance\`.
2038+-- /See:/ 'debugInstanceRequest' smart constructor.
2039+data DebugInstanceRequest =
2040+ DebugInstanceRequest'
2041+ deriving (Eq,Show,Data,Typeable,Generic)
2043+-- | Creates a value of 'DebugInstanceRequest' with the minimum fields required to make a request.
2045+debugInstanceRequest
2046+ :: DebugInstanceRequest
2047+debugInstanceRequest = DebugInstanceRequest'
2049+instance FromJSON DebugInstanceRequest where
2051+ = withObject "DebugInstanceRequest"
2052+ (\ o -> pure DebugInstanceRequest')
2054+instance ToJSON DebugInstanceRequest where
2055+ toJSON = const emptyObject
1826-- | HTTP headers to use for all responses from these URLs.
2057-- | HTTP headers to use for all responses from these URLs.
1828-- /See:/ 'staticFilesHandlerHTTPHeaders' smart constructor.
2059-- /See:/ 'staticFilesHandlerHTTPHeaders' smart constructor.
@@ -1859,7 +2090,7 @@ instance FromJSON StaticFilesHandlerHTTPHeaders where
1859instance ToJSON StaticFilesHandlerHTTPHeaders where
2090instance ToJSON StaticFilesHandlerHTTPHeaders where
1860 toJSON = toJSON . _sfhhttphAddtional
2091 toJSON = toJSON . _sfhhttphAddtional
1862−-- | Used to specify how many machine resources an app version needs.
2093+-- | Machine resources for a version.
1864-- /See:/ 'resources' smart constructor.
2095-- /See:/ 'resources' smart constructor.
1865data Resources = Resources'
2096data Resources = Resources'
@@ -1886,19 +2117,19 @@ resources =
1886 , _rCPU = Nothing
2117 , _rCPU = Nothing
1889−-- | How much memory, in GB, an app version needs.
2120+-- | Memory (GB) needed.
1890rMemoryGb :: Lens' Resources (Maybe Double)
2121rMemoryGb :: Lens' Resources (Maybe Double)
1891rMemoryGb
2122rMemoryGb
1892 = lens _rMemoryGb (\ s a -> s{_rMemoryGb = a}) .
2123 = lens _rMemoryGb (\ s a -> s{_rMemoryGb = a}) .
1893 mapping _Coerce
2124 mapping _Coerce
1895−-- | How much disk size, in GB, an app version needs.
2126+-- | Disk size (GB) needed.
1896rDiskGb :: Lens' Resources (Maybe Double)
2127rDiskGb :: Lens' Resources (Maybe Double)
1898 = lens _rDiskGb (\ s a -> s{_rDiskGb = a}) .
2129 = lens _rDiskGb (\ s a -> s{_rDiskGb = a}) .
1899 mapping _Coerce
2130 mapping _Coerce
1901−-- | How many CPU cores an app version needs.
2132+-- | Number of CPU cores needed.
1902rCPU :: Lens' Resources (Maybe Double)
2133rCPU :: Lens' Resources (Maybe Double)
1904 = lens _rCPU (\ s a -> s{_rCPU = a}) .
2135 = lens _rCPU (\ s a -> s{_rCPU = a}) .
@@ -1919,9 +2150,9 @@ instance ToJSON Resources where
1919 [("memoryGb" .=) <$> _rMemoryGb,
2150 [("memoryGb" .=) <$> _rMemoryGb,
1920 ("diskGb" .=) <$> _rDiskGb, ("cpu" .=) <$> _rCPU])
2151 ("diskGb" .=) <$> _rDiskGb, ("cpu" .=) <$> _rCPU])
1922−-- | A manifest of files stored in Google Cloud Storage which should be
2153+-- | Manifest of the files stored in Google Cloud Storage that are included
1923−-- included as part of this application. All files must be readable using
2154+-- as part of this version. All files must be readable using the
1924−-- the credentials supplied with this call.
2155+-- credentials supplied with this call.
1926-- /See:/ 'deploymentFiles' smart constructor.
2157-- /See:/ 'deploymentFiles' smart constructor.
1927newtype DeploymentFiles = DeploymentFiles'
2158newtype DeploymentFiles = DeploymentFiles'
@@ -1977,13 +2208,14 @@ cpuUtilization =
1977 , _cuTargetUtilization = Nothing
2208 , _cuTargetUtilization = Nothing
1980−-- | The period of time over which CPU utilization is calculated.
2211+-- | Period of time over which CPU utilization is calculated.
1981cuAggregationWindowLength :: Lens' CPUUtilization (Maybe Text)
2212cuAggregationWindowLength :: Lens' CPUUtilization (Maybe Text)
1982cuAggregationWindowLength
2213cuAggregationWindowLength
1983 = lens _cuAggregationWindowLength
2214 = lens _cuAggregationWindowLength
1984 (\ s a -> s{_cuAggregationWindowLength = a})
2215 (\ s a -> s{_cuAggregationWindowLength = a})
1986−-- | Target (0-1) CPU utilization ratio to maintain when scaling.
2217+-- | Target CPU utilization ratio to maintain when scaling. Must be between 0
1987cuTargetUtilization :: Lens' CPUUtilization (Maybe Double)
2219cuTargetUtilization :: Lens' CPUUtilization (Maybe Double)
1988cuTargetUtilization
2220cuTargetUtilization
1989 = lens _cuTargetUtilization
2221 = lens _cuTargetUtilization
@@ -2006,14 +2238,14 @@ instance ToJSON CPUUtilization where
2006 _cuAggregationWindowLength,
2238 _cuAggregationWindowLength,
2007 ("targetUtilization" .=) <$> _cuTargetUtilization])
2239 ("targetUtilization" .=) <$> _cuTargetUtilization])
2009−-- | Mapping from service version IDs within the service to fractional
2241+-- | Mapping from version IDs within the service to fractional (0.000, 1]
2010−-- (0.000, 1] allocations of traffic for that version. Each version may
2242+-- allocations of traffic for that version. Each version can be specified
2011−-- only be specified once, but some versions in the service may not have
2243+-- only once, but some versions in the service may not have any traffic
2012−-- any traffic allocation. Services that have traffic allocated in this
2244+-- allocation. Services that have traffic allocated cannot be deleted until
2013−-- field may not be deleted until the service is deleted, or their traffic
2245+-- either the service is deleted or their traffic allocation is removed.
2014−-- allocation is removed. Allocations must sum to 1. Supports precision up
2246+-- Allocations must sum to 1. Up to two decimal place precision is
2015−-- to two decimal places for IP-based splits and up to three decimal places
2247+-- supported for IP-based splits and up to three decimal places is
2016−-- for cookie-based splits.
2248+-- supported for cookie-based splits.
2018-- /See:/ 'trafficSplitAllocations' smart constructor.
2250-- /See:/ 'trafficSplitAllocations' smart constructor.
2019newtype TrafficSplitAllocations = TrafficSplitAllocations'
2251newtype TrafficSplitAllocations = TrafficSplitAllocations'
@@ -2067,8 +2299,8 @@ manualScaling =
2067 { _msInstances = Nothing
2299 { _msInstances = Nothing
2070−-- | The number of instances to assign to the service at the start. This
2302+-- | Number of instances to assign to the service at the start. This number
2071−-- number can later be altered by using the [Modules
2303+-- can later be altered by using the [Modules
2072-- API](https:\/\/cloud.google.com\/appengine\/docs\/python\/modules\/functions)
2304-- API](https:\/\/cloud.google.com\/appengine\/docs\/python\/modules\/functions)
2073-- \`set_num_instances()\` function.
2305-- \`set_num_instances()\` function.
2074msInstances :: Lens' ManualScaling (Maybe Int32)
2306msInstances :: Lens' ManualScaling (Maybe Int32)
@@ -2112,16 +2344,15 @@ basicScaling =
2112 , _bsIdleTimeout = Nothing
2344 , _bsIdleTimeout = Nothing
2115−-- | The maximum number of instances for App Engine to create for this
2347+-- | Maximum number of instances to create for this version.
2117bsMaxInstances :: Lens' BasicScaling (Maybe Int32)
2348bsMaxInstances :: Lens' BasicScaling (Maybe Int32)
2118bsMaxInstances
2349bsMaxInstances
2119 = lens _bsMaxInstances
2350 = lens _bsMaxInstances
2120 (\ s a -> s{_bsMaxInstances = a})
2351 (\ s a -> s{_bsMaxInstances = a})
2121 . mapping _Coerce
2352 . mapping _Coerce
2123−-- | The instance will be shut down this amount of time after receiving its
2354+-- | Duration of time after the last request that an instance must wait
2124−-- last request.
2355+-- before the instance is shut down.
2125bsIdleTimeout :: Lens' BasicScaling (Maybe Text)
2356bsIdleTimeout :: Lens' BasicScaling (Maybe Text)
2126bsIdleTimeout
2357bsIdleTimeout
2127 = lens _bsIdleTimeout
2358 = lens _bsIdleTimeout
@@ -2141,14 +2372,94 @@ instance ToJSON BasicScaling where
2141 [("maxInstances" .=) <$> _bsMaxInstances,
2372 [("maxInstances" .=) <$> _bsMaxInstances,
2142 ("idleTimeout" .=) <$> _bsIdleTimeout])
2373 ("idleTimeout" .=) <$> _bsIdleTimeout])
2375+-- | Metadata for the given google.longrunning.Operation.
2377+-- /See:/ 'operationMetadataV1' smart constructor.
2378+data OperationMetadataV1 = OperationMetadataV1'
2379+ { _omvInsertTime :: !(Maybe Text)
2380+ , _omvUser :: !(Maybe Text)
2381+ , _omvMethod :: !(Maybe Text)
2382+ , _omvEndTime :: !(Maybe Text)
2383+ , _omvTarget :: !(Maybe Text)
2384+ } deriving (Eq,Show,Data,Typeable,Generic)
2386+-- | Creates a value of 'OperationMetadataV1' with the minimum fields required to make a request.
2388+-- Use one of the following lenses to modify other fields as desired:
2390+-- * 'omvInsertTime'
2400+ :: OperationMetadataV1
2401+operationMetadataV1 =
2402+ OperationMetadataV1'
2403+ { _omvInsertTime = Nothing
2404+ , _omvUser = Nothing
2405+ , _omvMethod = Nothing
2406+ , _omvEndTime = Nothing
2407+ , _omvTarget = Nothing
2410+-- | Time that this operation was created. \'OutputOnly
2411+omvInsertTime :: Lens' OperationMetadataV1 (Maybe Text)
2413+ = lens _omvInsertTime
2414+ (\ s a -> s{_omvInsertTime = a})
2416+-- | User who requested this operation. \'OutputOnly
2417+omvUser :: Lens' OperationMetadataV1 (Maybe Text)
2418+omvUser = lens _omvUser (\ s a -> s{_omvUser = a})
2420+-- | API method that initiated this operation. Example:
2421+-- \`google.appengine.v1.Versions.CreateVersion\`. \'OutputOnly
2422+omvMethod :: Lens' OperationMetadataV1 (Maybe Text)
2424+ = lens _omvMethod (\ s a -> s{_omvMethod = a})
2426+-- | Time that this operation completed. \'OutputOnly
2427+omvEndTime :: Lens' OperationMetadataV1 (Maybe Text)
2429+ = lens _omvEndTime (\ s a -> s{_omvEndTime = a})
2431+-- | Name of the resource that this operation is acting on. Example:
2432+-- \`apps\/myapp\/services\/default\`. \'OutputOnly
2433+omvTarget :: Lens' OperationMetadataV1 (Maybe Text)
2435+ = lens _omvTarget (\ s a -> s{_omvTarget = a})
2437+instance FromJSON OperationMetadataV1 where
2439+ = withObject "OperationMetadataV1"
2441+ OperationMetadataV1' <$>
2442+ (o .:? "insertTime") <*> (o .:? "user") <*>
2444+ <*> (o .:? "endTime")
2445+ <*> (o .:? "target"))
2447+instance ToJSON OperationMetadataV1 where
2448+ toJSON OperationMetadataV1'{..}
2451+ [("insertTime" .=) <$> _omvInsertTime,
2452+ ("user" .=) <$> _omvUser,
2453+ ("method" .=) <$> _omvMethod,
2454+ ("endTime" .=) <$> _omvEndTime,
2455+ ("target" .=) <$> _omvTarget])
2144−-- | A Version is a specific set of source code and configuration files
2457+-- | A Version resource is a specific set of source code and configuration
2145−-- deployed to a service.
2458+-- files that are deployed into a service.
2147-- /See:/ 'version' smart constructor.
2460-- /See:/ 'version' smart constructor.
2148data Version = Version'
2461data Version = Version'
2149− { _vCreationTime :: !(Maybe Text)
2150− , _vRuntime :: !(Maybe Text)
2462+ { _vRuntime :: !(Maybe Text)
2151− , _vDeployer :: !(Maybe Text)
2152 , _vNobuildFilesRegex :: !(Maybe Text)
2463 , _vNobuildFilesRegex :: !(Maybe Text)
2153 , _vInstanceClass :: !(Maybe Text)
2464 , _vInstanceClass :: !(Maybe Text)
2154 , _vHealthCheck :: !(Maybe HealthCheck)
2465 , _vHealthCheck :: !(Maybe HealthCheck)
@@ -2156,6 +2467,7 @@ data Version = Version'
2156 , _vDefaultExpiration :: !(Maybe Text)
2467 , _vDefaultExpiration :: !(Maybe Text)
2157 , _vAutomaticScaling :: !(Maybe AutomaticScaling)
2468 , _vAutomaticScaling :: !(Maybe AutomaticScaling)
2158 , _vErrorHandlers :: !(Maybe [ErrorHandler])
2469 , _vErrorHandlers :: !(Maybe [ErrorHandler])
2470+ , _vCreatedBy :: !(Maybe Text)
2159 , _vVM :: !(Maybe Bool)
2471 , _vVM :: !(Maybe Bool)
2160 , _vHandlers :: !(Maybe [URLMap])
2472 , _vHandlers :: !(Maybe [URLMap])
2161 , _vInboundServices :: !(Maybe [Text])
2473 , _vInboundServices :: !(Maybe [Text])
@@ -2171,7 +2483,9 @@ data Version = Version'
2171 , _vEnvVariables :: !(Maybe VersionEnvVariables)
2483 , _vEnvVariables :: !(Maybe VersionEnvVariables)
2172 , _vServingStatus :: !(Maybe Text)
2484 , _vServingStatus :: !(Maybe Text)
2173 , _vDiskUsageBytes :: !(Maybe (Textual Int64))
2485 , _vDiskUsageBytes :: !(Maybe (Textual Int64))
2486+ , _vCreateTime :: !(Maybe Text)
2174 , _vLibraries :: !(Maybe [Library])
2487 , _vLibraries :: !(Maybe [Library])
2488+ , _vVersionURL :: !(Maybe Text)
2175 , _vDeployment :: !(Maybe Deployment)
2489 , _vDeployment :: !(Maybe Deployment)
2176 } deriving (Eq,Show,Data,Typeable,Generic)
2490 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -2179,12 +2493,8 @@ data Version = Version'
2180-- Use one of the following lenses to modify other fields as desired:
2494-- Use one of the following lenses to modify other fields as desired:
2182−-- * 'vCreationTime'
2184-- * 'vRuntime'
2496-- * 'vRuntime'
2188-- * 'vNobuildFilesRegex'
2498-- * 'vNobuildFilesRegex'
2190-- * 'vInstanceClass'
2500-- * 'vInstanceClass'
@@ -2199,6 +2509,8 @@ data Version = Version'
2200-- * 'vErrorHandlers'
2510-- * 'vErrorHandlers'
2202-- * 'vVM'
2514-- * 'vVM'
2204-- * 'vHandlers'
2516-- * 'vHandlers'
@@ -2229,16 +2541,18 @@ data Version = Version'
2230-- * 'vDiskUsageBytes'
2542-- * 'vDiskUsageBytes'
2232-- * 'vLibraries'
2546-- * 'vLibraries'
2234-- * 'vDeployment'
2550-- * 'vDeployment'
2236 :: Version
2552 :: Version
2237version =
2553version =
2238 Version'
2554 Version'
2239− { _vCreationTime = Nothing
2240− , _vRuntime = Nothing
2555+ { _vRuntime = Nothing
2241− , _vDeployer = Nothing
2242 , _vNobuildFilesRegex = Nothing
2556 , _vNobuildFilesRegex = Nothing
2243 , _vInstanceClass = Nothing
2557 , _vInstanceClass = Nothing
2244 , _vHealthCheck = Nothing
2558 , _vHealthCheck = Nothing
@@ -2246,6 +2560,7 @@ version =
2246 , _vDefaultExpiration = Nothing
2560 , _vDefaultExpiration = Nothing
2247 , _vAutomaticScaling = Nothing
2561 , _vAutomaticScaling = Nothing
2248 , _vErrorHandlers = Nothing
2562 , _vErrorHandlers = Nothing
2563+ , _vCreatedBy = Nothing
2249 , _vVM = Nothing
2564 , _vVM = Nothing
2250 , _vHandlers = Nothing
2565 , _vHandlers = Nothing
2251 , _vInboundServices = Nothing
2566 , _vInboundServices = Nothing
@@ -2261,76 +2576,65 @@ version =
2261 , _vEnvVariables = Nothing
2576 , _vEnvVariables = Nothing
2262 , _vServingStatus = Nothing
2577 , _vServingStatus = Nothing
2263 , _vDiskUsageBytes = Nothing
2578 , _vDiskUsageBytes = Nothing
2579+ , _vCreateTime = Nothing
2264 , _vLibraries = Nothing
2580 , _vLibraries = Nothing
2581+ , _vVersionURL = Nothing
2265 , _vDeployment = Nothing
2582 , _vDeployment = Nothing
2268−-- | Creation time of this version. This will be between the start and end
2585+-- | Desired runtime. Example: \`python27\`.
2269−-- times of the operation that creates this version. \'OutputOnly
2270−vCreationTime :: Lens' Version (Maybe Text)
2272− = lens _vCreationTime
2273− (\ s a -> s{_vCreationTime = a})
2275−-- | The desired runtime. Values can include python27, java7, go, etc.
2276vRuntime :: Lens' Version (Maybe Text)
2586vRuntime :: Lens' Version (Maybe Text)
2277vRuntime = lens _vRuntime (\ s a -> s{_vRuntime = a})
2587vRuntime = lens _vRuntime (\ s a -> s{_vRuntime = a})
2279−-- | The email address of the user who created this version. \'OutputOnly
2280−vDeployer :: Lens' Version (Maybe Text)
2282− = lens _vDeployer (\ s a -> s{_vDeployer = a})
2284−-- | Go only. Files that match this pattern will not be built into the app.
2589+-- | Files that match this pattern will not be built into this version. Only
2285−-- May only be set on create requests.
2590+-- applicable for Go runtimes. Only returned in \`GET\` requests if
2591+-- \`view=FULL\` is set.
2286vNobuildFilesRegex :: Lens' Version (Maybe Text)
2592vNobuildFilesRegex :: Lens' Version (Maybe Text)
2287vNobuildFilesRegex
2593vNobuildFilesRegex
2288 = lens _vNobuildFilesRegex
2594 = lens _vNobuildFilesRegex
2289 (\ s a -> s{_vNobuildFilesRegex = a})
2595 (\ s a -> s{_vNobuildFilesRegex = a})
2291−-- | The instance class to use to run this app. Valid values for
2597+-- | Instance class that is used to run this version. Valid values are: *
2292−-- AutomaticScaling are \`[F1, F2, F4, F4_1G]\`. Valid values for
2598+-- AutomaticScaling: \`F1\`, \`F2\`, \`F4\`, \`F4_1G\` * ManualScaling or
2293−-- ManualScaling and BasicScaling are \`[B1, B2, B4, B8, B4_1G]\`. Default:
2599+-- BasicScaling: \`B1\`, \`B2\`, \`B4\`, \`B8\`, \`B4_1G\` Defaults to
2294−-- \"F1\" for AutomaticScaling, \"B1\" for ManualScaling and BasicScaling
2600+-- \`F1\` for AutomaticScaling and \`B1\` for ManualScaling or
2295vInstanceClass :: Lens' Version (Maybe Text)
2602vInstanceClass :: Lens' Version (Maybe Text)
2296vInstanceClass
2603vInstanceClass
2297 = lens _vInstanceClass
2604 = lens _vInstanceClass
2298 (\ s a -> s{_vInstanceClass = a})
2605 (\ s a -> s{_vInstanceClass = a})
2300−-- | Configure health checking for the VM instances. Unhealthy VM instances
2607+-- | Configures health checking for VM instances. Unhealthy instances are
2301−-- will be stopped and replaced with new instances. Only returned in
2608+-- stopped and replaced with new instances. Only applicable for VM
2302−-- \`GET\` requests if \`view=FULL\` is set. May only be set on create
2609+-- runtimes. Only returned in \`GET\` requests if \`view=FULL\` is set.
2303−-- requests; once created, is immutable.
2304vHealthCheck :: Lens' Version (Maybe HealthCheck)
2610vHealthCheck :: Lens' Version (Maybe HealthCheck)
2305vHealthCheck
2611vHealthCheck
2306 = lens _vHealthCheck (\ s a -> s{_vHealthCheck = a})
2612 = lens _vHealthCheck (\ s a -> s{_vHealthCheck = a})
2308−-- | The App Engine execution environment to use for this version. Default:
2614+-- | App Engine execution environment for this version. Defaults to
2309−-- \"1\"
2615+-- \`standard\`.
2310vEnv :: Lens' Version (Maybe Text)
2616vEnv :: Lens' Version (Maybe Text)
2311vEnv = lens _vEnv (\ s a -> s{_vEnv = a})
2617vEnv = lens _vEnv (\ s a -> s{_vEnv = a})
2313−-- | The length of time a static file served by a static file handler ought
2314−-- to be cached by web proxies and browsers, if the handler does not
2619+-- | 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)
2315−-- specify its own expiration. Only returned in \`GET\` requests if
2622+-- does not specify its own expiration time. Only returned in \`GET\`
2316−-- \`view=FULL\` is set. May only be set on create requests; once created,
2623+-- requests if \`view=FULL\` is set.
2318vDefaultExpiration :: Lens' Version (Maybe Text)
2624vDefaultExpiration :: Lens' Version (Maybe Text)
2319vDefaultExpiration
2625vDefaultExpiration
2320 = lens _vDefaultExpiration
2626 = lens _vDefaultExpiration
2321 (\ s a -> s{_vDefaultExpiration = a})
2627 (\ s a -> s{_vDefaultExpiration = a})
2323−-- | Automatic scaling is the scaling policy that App Engine has used since
2324−-- its inception. It is based on request rate, response latencies, and
2629+-- | Automatic scaling is based on request rate, response latencies, and
2325-- other application metrics.
2630-- other application metrics.
2326vAutomaticScaling :: Lens' Version (Maybe AutomaticScaling)
2631vAutomaticScaling :: Lens' Version (Maybe AutomaticScaling)
2327vAutomaticScaling
2632vAutomaticScaling
2328 = lens _vAutomaticScaling
2633 = lens _vAutomaticScaling
2329 (\ s a -> s{_vAutomaticScaling = a})
2634 (\ s a -> s{_vAutomaticScaling = a})
2331−-- | Custom static error pages instead of these generic error pages, (limit
2636+-- | Custom static error pages. Limited to 10KB per page. Only returned in
2332−-- 10 KB\/page) Only returned in \`GET\` requests if \`view=FULL\` is set.
2637+-- \`GET\` requests if \`view=FULL\` is set.
2333−-- May only be set on create requests; once created, is immutable.
2334vErrorHandlers :: Lens' Version [ErrorHandler]
2638vErrorHandlers :: Lens' Version [ErrorHandler]
2335vErrorHandlers
2639vErrorHandlers
2336 = lens _vErrorHandlers
2640 = lens _vErrorHandlers
@@ -2338,15 +2642,19 @@ vErrorHandlers
2338 . _Default
2642 . _Default
2339 . _Coerce
2643 . _Coerce
2645+-- | Email address of the user who created this version. \'OutputOnly
2646+vCreatedBy :: Lens' Version (Maybe Text)
2648+ = lens _vCreatedBy (\ s a -> s{_vCreatedBy = a})
2341−-- | Whether to deploy this app in a VM container.
2650+-- | Whether to deploy this version in a container on a virtual machine.
2342vVM :: Lens' Version (Maybe Bool)
2651vVM :: Lens' Version (Maybe Bool)
2343vVM = lens _vVM (\ s a -> s{_vVM = a})
2652vVM = lens _vVM (\ s a -> s{_vVM = a})
2345−-- | An ordered list of URL Matching patterns that should be applied to
2654+-- | An ordered list of URL-matching patterns that should be applied to
2346−-- incoming requests. The first matching URL consumes the request, and
2655+-- incoming requests. The first matching URL handles the request and other
2347−-- subsequent handlers are not attempted. Only returned in \`GET\` requests
2656+-- request handlers are not attempted. Only returned in \`GET\` requests if
2348−-- if \`view=FULL\` is set. May only be set on create requests; once
2657+-- \`view=FULL\` is set.
2349−-- created, is immutable.
2350vHandlers :: Lens' Version [URLMap]
2658vHandlers :: Lens' Version [URLMap]
2351vHandlers
2659vHandlers
2352 = lens _vHandlers (\ s a -> s{_vHandlers = a}) .
2660 = lens _vHandlers (\ s a -> s{_vHandlers = a}) .
@@ -2362,27 +2670,27 @@ vInboundServices
2362 . _Default
2670 . _Default
2363 . _Coerce
2671 . _Coerce
2365−-- | Used to specify extra network settings (for VM runtimes only).
2673+-- | Extra network settings. Only applicable for VM runtimes.
2366vNetwork :: Lens' Version (Maybe Network)
2674vNetwork :: Lens' Version (Maybe Network)
2367vNetwork = lens _vNetwork (\ s a -> s{_vNetwork = a})
2675vNetwork = lens _vNetwork (\ s a -> s{_vNetwork = a})
2369−-- | Used to specify how many machine resources an app version needs (for VM
2677+-- | Machine resources for this version. Only applicable for VM runtimes.
2371vResources :: Lens' Version (Maybe Resources)
2678vResources :: Lens' Version (Maybe Resources)
2372vResources
2679vResources
2373 = lens _vResources (\ s a -> s{_vResources = a})
2680 = lens _vResources (\ s a -> s{_vResources = a})
2375−-- | The full path to the Version resource in the API. Example:
2682+-- | Full path to the Version resource in the API. Example:
2376−-- \"apps\/myapp\/services\/default\/versions\/v1\". \'OutputOnly
2683+-- \`apps\/myapp\/services\/default\/versions\/v1\`. \'OutputOnly
2377vName :: Lens' Version (Maybe Text)
2684vName :: Lens' Version (Maybe Text)
2378vName = lens _vName (\ s a -> s{_vName = a})
2685vName = lens _vName (\ s a -> s{_vName = a})
2380−-- | If true, multiple requests can be dispatched to the app at once.
2687+-- | Whether multiple requests can be dispatched to this version at once.
2381vThreadsafe :: Lens' Version (Maybe Bool)
2688vThreadsafe :: Lens' Version (Maybe Bool)
2382vThreadsafe
2689vThreadsafe
2383 = lens _vThreadsafe (\ s a -> s{_vThreadsafe = a})
2690 = lens _vThreadsafe (\ s a -> s{_vThreadsafe = a})
2385−-- | Beta settings supplied to the application via metadata.
2692+-- | Metadata settings that are supplied to this version to enable beta
2693+-- runtime features.
2386vBetaSettings :: Lens' Version (Maybe VersionBetaSettings)
2694vBetaSettings :: Lens' Version (Maybe VersionBetaSettings)
2387vBetaSettings
2695vBetaSettings
2388 = lens _vBetaSettings
2696 = lens _vBetaSettings
@@ -2404,57 +2712,66 @@ vManualScaling
2404 = lens _vManualScaling
2712 = lens _vManualScaling
2405 (\ s a -> s{_vManualScaling = a})
2713 (\ s a -> s{_vManualScaling = a})
2407−-- | Serving configuration for Google Cloud Endpoints. Only returned in
2715+-- | Serving configuration for [Google Cloud
2716+-- Endpoints](https:\/\/cloud.google.com\/appengine\/docs\/python\/endpoints\/).
2408−-- \`GET\` requests if \`view=FULL\` is set. May only be set on create
2717+-- Only returned in \`GET\` requests if \`view=FULL\` is set.
2409−-- requests; once created, is immutable.
2410vAPIConfig :: Lens' Version (Maybe APIConfigHandler)
2718vAPIConfig :: Lens' Version (Maybe APIConfigHandler)
2411vAPIConfig
2719vAPIConfig
2412 = lens _vAPIConfig (\ s a -> s{_vAPIConfig = a})
2720 = lens _vAPIConfig (\ s a -> s{_vAPIConfig = a})
2414−-- | The relative name\/path of the Version within the service. Example:
2722+-- | Relative name of the version within the service. Example: \`v1\`.
2415−-- \"v1\". Version specifiers can contain lowercase letters, digits, and
2723+-- Version names can contain only lowercase letters, numbers, or hyphens.
2416−-- hyphens. It cannot begin with the prefix \`ah-\` and the names
2724+-- Reserved names: \"default\", \"latest\", and any name with the prefix
2417−-- \`default\` and \`latest\` are reserved and cannot be used.
2725+-- \"ah-\".
2418vId :: Lens' Version (Maybe Text)
2726vId :: Lens' Version (Maybe Text)
2419vId = lens _vId (\ s a -> s{_vId = a})
2727vId = lens _vId (\ s a -> s{_vId = a})
2421−-- | Environment variables made available to the application. Only returned
2729+-- | Environment variables available to the application. Only returned in
2422−-- in \`GET\` requests if \`view=FULL\` is set. May only be set on create
2730+-- \`GET\` requests if \`view=FULL\` is set.
2423−-- requests; once created, is immutable.
2424vEnvVariables :: Lens' Version (Maybe VersionEnvVariables)
2731vEnvVariables :: Lens' Version (Maybe VersionEnvVariables)
2425vEnvVariables
2732vEnvVariables
2426 = lens _vEnvVariables
2733 = lens _vEnvVariables
2427 (\ s a -> s{_vEnvVariables = a})
2734 (\ s a -> s{_vEnvVariables = a})
2429−-- | The current serving status of this version. Only \`SERVING\` versions
2736+-- | Current serving status of this version. Only the versions with a
2430−-- will have instances created or billed for. If this field is unset when a
2737+-- \`SERVING\` status create instances and can be billed.
2431−-- version is created, \`SERVING\` status will be assumed. It is an error
2738+-- \`SERVING_STATUS_UNSPECIFIED\` is an invalid value. Defaults to
2432−-- to explicitly set this field to \`SERVING_STATUS_UNSPECIFIED\`.
2739+-- \`SERVING\`.
2433vServingStatus :: Lens' Version (Maybe Text)
2740vServingStatus :: Lens' Version (Maybe Text)
2434vServingStatus
2741vServingStatus
2435 = lens _vServingStatus
2742 = lens _vServingStatus
2436 (\ s a -> s{_vServingStatus = a})
2743 (\ s a -> s{_vServingStatus = a})
2745+-- | Total size in bytes of all the files that are included in this version
2438−-- | Total size of version files hosted on App Engine disk in bytes.
2746+-- and curerntly hosted on the App Engine disk. \'OutputOnly
2440vDiskUsageBytes :: Lens' Version (Maybe Int64)
2747vDiskUsageBytes :: Lens' Version (Maybe Int64)
2441vDiskUsageBytes
2748vDiskUsageBytes
2442 = lens _vDiskUsageBytes
2749 = lens _vDiskUsageBytes
2443 (\ s a -> s{_vDiskUsageBytes = a})
2750 (\ s a -> s{_vDiskUsageBytes = a})
2444 . mapping _Coerce
2751 . mapping _Coerce
2753+-- | Time that this version was created. \'OutputOnly
2754+vCreateTime :: Lens' Version (Maybe Text)
2756+ = lens _vCreateTime (\ s a -> s{_vCreateTime = a})
2446−-- | Configuration for Python runtime third-party libraries required by the
2758+-- | Configuration for third-party Python runtime libraries that are required
2447−-- application. Only returned in \`GET\` requests if \`view=FULL\` is set.
2759+-- by the application. Only returned in \`GET\` requests if \`view=FULL\`
2448−-- May only be set on create requests; once created, is immutable.
2760+-- is set.
2449vLibraries :: Lens' Version [Library]
2761vLibraries :: Lens' Version [Library]
2450vLibraries
2762vLibraries
2451 = lens _vLibraries (\ s a -> s{_vLibraries = a}) .
2763 = lens _vLibraries (\ s a -> s{_vLibraries = a}) .
2452 _Default
2764 _Default
2453 . _Coerce
2765 . _Coerce
2767+-- | Serving URL for this version. Example:
2768+-- \"https:\/\/myversion-dot-myservice-dot-myapp.appspot.com\" \'OutputOnly
2769+vVersionURL :: Lens' Version (Maybe Text)
2771+ = lens _vVersionURL (\ s a -> s{_vVersionURL = a})
2455-- | Code and application artifacts that make up this version. Only returned
2773-- | Code and application artifacts that make up this version. Only returned
2456−-- in \`GET\` requests if \`view=FULL\` is set. May only be set on create
2774+-- in \`GET\` requests if \`view=FULL\` is set.
2457−-- requests; once created, is immutable.
2458vDeployment :: Lens' Version (Maybe Deployment)
2775vDeployment :: Lens' Version (Maybe Deployment)
2459vDeployment
2776vDeployment
2460 = lens _vDeployment (\ s a -> s{_vDeployment = a})
2777 = lens _vDeployment (\ s a -> s{_vDeployment = a})
@@ -2464,15 +2781,14 @@ instance FromJSON Version where
2464 = withObject "Version"
2781 = withObject "Version"
2466 Version' <$>
2783 Version' <$>
2467− (o .:? "creationTime") <*> (o .:? "runtime") <*>
2469− <*> (o .:? "nobuildFilesRegex")
2784+ (o .:? "runtime") <*> (o .:? "nobuildFilesRegex") <*>
2470− <*> (o .:? "instanceClass")
2785+ (o .:? "instanceClass")
2471 <*> (o .:? "healthCheck")
2786 <*> (o .:? "healthCheck")
2472 <*> (o .:? "env")
2787 <*> (o .:? "env")
2473 <*> (o .:? "defaultExpiration")
2788 <*> (o .:? "defaultExpiration")
2474 <*> (o .:? "automaticScaling")
2789 <*> (o .:? "automaticScaling")
2475 <*> (o .:? "errorHandlers" .!= mempty)
2790 <*> (o .:? "errorHandlers" .!= mempty)
2791+ <*> (o .:? "createdBy")
2476 <*> (o .:? "vm")
2792 <*> (o .:? "vm")
2477 <*> (o .:? "handlers" .!= mempty)
2793 <*> (o .:? "handlers" .!= mempty)
2478 <*> (o .:? "inboundServices" .!= mempty)
2794 <*> (o .:? "inboundServices" .!= mempty)
@@ -2488,16 +2804,16 @@ instance FromJSON Version where
2488 <*> (o .:? "envVariables")
2804 <*> (o .:? "envVariables")
2489 <*> (o .:? "servingStatus")
2805 <*> (o .:? "servingStatus")
2490 <*> (o .:? "diskUsageBytes")
2806 <*> (o .:? "diskUsageBytes")
2807+ <*> (o .:? "createTime")
2491 <*> (o .:? "libraries" .!= mempty)
2808 <*> (o .:? "libraries" .!= mempty)
2809+ <*> (o .:? "versionUrl")
2492 <*> (o .:? "deployment"))
2810 <*> (o .:? "deployment"))
2494instance ToJSON Version where
2812instance ToJSON Version where
2495 toJSON Version'{..}
2813 toJSON Version'{..}
2496 = object
2814 = object
2497 (catMaybes
2815 (catMaybes
2498− [("creationTime" .=) <$> _vCreationTime,
2499− ("runtime" .=) <$> _vRuntime,
2816+ [("runtime" .=) <$> _vRuntime,
2500− ("deployer" .=) <$> _vDeployer,
2501 ("nobuildFilesRegex" .=) <$> _vNobuildFilesRegex,
2817 ("nobuildFilesRegex" .=) <$> _vNobuildFilesRegex,
2502 ("instanceClass" .=) <$> _vInstanceClass,
2818 ("instanceClass" .=) <$> _vInstanceClass,
2503 ("healthCheck" .=) <$> _vHealthCheck,
2819 ("healthCheck" .=) <$> _vHealthCheck,
@@ -2505,7 +2821,8 @@ instance ToJSON Version where
2505 ("defaultExpiration" .=) <$> _vDefaultExpiration,
2821 ("defaultExpiration" .=) <$> _vDefaultExpiration,
2506 ("automaticScaling" .=) <$> _vAutomaticScaling,
2822 ("automaticScaling" .=) <$> _vAutomaticScaling,
2507 ("errorHandlers" .=) <$> _vErrorHandlers,
2823 ("errorHandlers" .=) <$> _vErrorHandlers,
2824+ ("createdBy" .=) <$> _vCreatedBy, ("vm" .=) <$> _vVM,
2508− ("vm" .=) <$> _vVM, ("handlers" .=) <$> _vHandlers,
2825+ ("handlers" .=) <$> _vHandlers,
2509 ("inboundServices" .=) <$> _vInboundServices,
2826 ("inboundServices" .=) <$> _vInboundServices,
2510 ("network" .=) <$> _vNetwork,
2827 ("network" .=) <$> _vNetwork,
2511 ("resources" .=) <$> _vResources,
2828 ("resources" .=) <$> _vResources,
@@ -2518,7 +2835,9 @@ instance ToJSON Version where
2518 ("envVariables" .=) <$> _vEnvVariables,
2835 ("envVariables" .=) <$> _vEnvVariables,
2519 ("servingStatus" .=) <$> _vServingStatus,
2836 ("servingStatus" .=) <$> _vServingStatus,
2520 ("diskUsageBytes" .=) <$> _vDiskUsageBytes,
2837 ("diskUsageBytes" .=) <$> _vDiskUsageBytes,
2838+ ("createTime" .=) <$> _vCreateTime,
2521 ("libraries" .=) <$> _vLibraries,
2839 ("libraries" .=) <$> _vLibraries,
2840+ ("versionUrl" .=) <$> _vVersionURL,
2522 ("deployment" .=) <$> _vDeployment])
2841 ("deployment" .=) <$> _vDeployment])
2524-- | Files served directly to the user for a given URL, such as images, CSS
2843-- | Files served directly to the user for a given URL, such as images, CSS
@@ -2573,46 +2892,44 @@ sfhHTTPHeaders
2573 = lens _sfhHTTPHeaders
2892 = lens _sfhHTTPHeaders
2574 (\ s a -> s{_sfhHTTPHeaders = a})
2893 (\ s a -> s{_sfhHTTPHeaders = a})
2576−-- | The path to the static files matched by the URL pattern, from the
2895+-- | Path to the static files matched by the URL pattern, from the
2577-- application root directory. The path can refer to text matched in
2896-- application root directory. The path can refer to text matched in
2578-- groupings in the URL pattern.
2897-- groupings in the URL pattern.
2579sfhPath :: Lens' StaticFilesHandler (Maybe Text)
2898sfhPath :: Lens' StaticFilesHandler (Maybe Text)
2580sfhPath = lens _sfhPath (\ s a -> s{_sfhPath = a})
2899sfhPath = lens _sfhPath (\ s a -> s{_sfhPath = a})
2582−-- | If true, this UrlMap entry does not match the request unless the file
2901+-- | Whether this handler should match the request if the file referenced by
2583−-- referenced by the handler also exists. If no such file exists,
2902+-- the handler does not exist.
2584−-- processing will continue with the next UrlMap that matches the requested
2586sfhRequireMatchingFile :: Lens' StaticFilesHandler (Maybe Bool)
2903sfhRequireMatchingFile :: Lens' StaticFilesHandler (Maybe Bool)
2587sfhRequireMatchingFile
2904sfhRequireMatchingFile
2588 = lens _sfhRequireMatchingFile
2905 = lens _sfhRequireMatchingFile
2589 (\ s a -> s{_sfhRequireMatchingFile = a})
2906 (\ s a -> s{_sfhRequireMatchingFile = a})
2591−-- | The length of time a static file served by this handler ought to be
2908+-- | Time a static file served by this handler should be cached by web
2592−-- cached by web proxies and browsers.
2909+-- proxies and browsers.
2593sfhExpiration :: Lens' StaticFilesHandler (Maybe Text)
2910sfhExpiration :: Lens' StaticFilesHandler (Maybe Text)
2594sfhExpiration
2911sfhExpiration
2595 = lens _sfhExpiration
2912 = lens _sfhExpiration
2596 (\ s a -> s{_sfhExpiration = a})
2913 (\ s a -> s{_sfhExpiration = a})
2598−-- | If specified, all files served by this handler will be served using the
2915+-- | MIME type used to serve all files served by this handler. Defaults to
2599−-- specified MIME type. If not specified, the MIME type for a file will be
2600−-- derived from the file\'s filename extension.
2916+-- file-specific MIME types, which are derived from each file\'s filename
2601sfhMimeType :: Lens' StaticFilesHandler (Maybe Text)
2918sfhMimeType :: Lens' StaticFilesHandler (Maybe Text)
2602sfhMimeType
2919sfhMimeType
2603 = lens _sfhMimeType (\ s a -> s{_sfhMimeType = a})
2920 = lens _sfhMimeType (\ s a -> s{_sfhMimeType = a})
2922+-- | Whether files should also be uploaded as code data. By default, files
2605−-- | By default, files declared in static file handlers are uploaded as
2923+-- declared in static file handlers are uploaded as static data and are
2606−-- static data and are only served to end users, they cannot be read by an
2924+-- only served to end users; they cannot be read by the application. If
2607−-- application. If this field is set to true, the files are also uploaded
2925+-- enabled, uploads are charged against both your code and static data
2608−-- as code data so your application can read them. Both uploads are charged
2609−-- against your code and static data storage resource quotas.
2926+-- storage resource quotas.
2610sfhApplicationReadable :: Lens' StaticFilesHandler (Maybe Bool)
2927sfhApplicationReadable :: Lens' StaticFilesHandler (Maybe Bool)
2611sfhApplicationReadable
2928sfhApplicationReadable
2612 = lens _sfhApplicationReadable
2929 = lens _sfhApplicationReadable
2613 (\ s a -> s{_sfhApplicationReadable = a})
2930 (\ s a -> s{_sfhApplicationReadable = a})
2615−-- | A regular expression that matches the file paths for all files that will
2932+-- | Regular expression that matches the file paths for all files that should
2616-- be referenced by this handler.
2933-- be referenced by this handler.
2617sfhUploadPathRegex :: Lens' StaticFilesHandler (Maybe Text)
2934sfhUploadPathRegex :: Lens' StaticFilesHandler (Maybe Text)
2618sfhUploadPathRegex
2935sfhUploadPathRegex
@@ -2645,7 +2962,7 @@ instance ToJSON StaticFilesHandler where
2645 _sfhApplicationReadable,
2962 _sfhApplicationReadable,
2646 ("uploadPathRegex" .=) <$> _sfhUploadPathRegex])
2963 ("uploadPathRegex" .=) <$> _sfhUploadPathRegex])
2648−-- | A custom static error page to be served when an error occurs.
2965+-- | Custom static error page to be served when an error occurs.
2650-- /See:/ 'errorHandler' smart constructor.
2967-- /See:/ 'errorHandler' smart constructor.
2651data ErrorHandler = ErrorHandler'
2968data ErrorHandler = ErrorHandler'
@@ -2672,12 +2989,12 @@ errorHandler =
2672 , _ehStaticFile = Nothing
2989 , _ehStaticFile = Nothing
2675−-- | MIME type of file. If unspecified, \"text\/html\" is assumed.
2992+-- | MIME type of file. Defaults to \`text\/html\`.
2676ehMimeType :: Lens' ErrorHandler (Maybe Text)
2993ehMimeType :: Lens' ErrorHandler (Maybe Text)
2677ehMimeType
2994ehMimeType
2678 = lens _ehMimeType (\ s a -> s{_ehMimeType = a})
2995 = lens _ehMimeType (\ s a -> s{_ehMimeType = a})
2680−-- | The error condition this handler applies to.
2997+-- | Error condition this handler applies to.
2681ehErrorCode :: Lens' ErrorHandler (Maybe Text)
2998ehErrorCode :: Lens' ErrorHandler (Maybe Text)
2682ehErrorCode
2999ehErrorCode
2683 = lens _ehErrorCode (\ s a -> s{_ehErrorCode = a})
3000 = lens _ehErrorCode (\ s a -> s{_ehErrorCode = a})
@@ -2703,6 +3020,94 @@ instance ToJSON ErrorHandler where
2703 ("errorCode" .=) <$> _ehErrorCode,
3020 ("errorCode" .=) <$> _ehErrorCode,
2704 ("staticFile" .=) <$> _ehStaticFile])
3021 ("staticFile" .=) <$> _ehStaticFile])
3023+-- | Cross-service attributes for the location. For example
3024+-- {\"cloud.googleapis.com\/region\": \"us-east1\"}
3026+-- /See:/ 'locationLabels' smart constructor.
3027+newtype LocationLabels = LocationLabels'
3028+ { _llAddtional :: HashMap Text Text
3029+ } deriving (Eq,Show,Data,Typeable,Generic)
3031+-- | Creates a value of 'LocationLabels' with the minimum fields required to make a request.
3033+-- Use one of the following lenses to modify other fields as desired:
3037+ :: HashMap Text Text -- ^ 'llAddtional'
3039+locationLabels pLlAddtional_ =
3041+ { _llAddtional = _Coerce # pLlAddtional_
3044+llAddtional :: Lens' LocationLabels (HashMap Text Text)
3046+ = lens _llAddtional (\ s a -> s{_llAddtional = a}) .
3049+instance FromJSON LocationLabels where
3051+ = withObject "LocationLabels"
3052+ (\ o -> LocationLabels' <$> (parseJSONObject o))
3054+instance ToJSON LocationLabels where
3055+ toJSON = toJSON . _llAddtional
3057+-- | Metadata for the given google.cloud.location.Location.
3059+-- /See:/ 'locationMetadata' smart constructor.
3060+data LocationMetadata = LocationMetadata'
3061+ { _lmStandardEnvironmentAvailable :: !(Maybe Bool)
3062+ , _lmFlexibleEnvironmentAvailable :: !(Maybe Bool)
3063+ } deriving (Eq,Show,Data,Typeable,Generic)
3065+-- | Creates a value of 'LocationMetadata' with the minimum fields required to make a request.
3067+-- Use one of the following lenses to modify other fields as desired:
3069+-- * 'lmStandardEnvironmentAvailable'
3071+-- * 'lmFlexibleEnvironmentAvailable'
3073+ :: LocationMetadata
3076+ { _lmStandardEnvironmentAvailable = Nothing
3077+ , _lmFlexibleEnvironmentAvailable = Nothing
3080+-- | App Engine Standard Environment is available in the given location.
3082+lmStandardEnvironmentAvailable :: Lens' LocationMetadata (Maybe Bool)
3083+lmStandardEnvironmentAvailable
3084+ = lens _lmStandardEnvironmentAvailable
3085+ (\ s a -> s{_lmStandardEnvironmentAvailable = a})
3087+-- | App Engine Flexible Environment is available in the given location.
3089+lmFlexibleEnvironmentAvailable :: Lens' LocationMetadata (Maybe Bool)
3090+lmFlexibleEnvironmentAvailable
3091+ = lens _lmFlexibleEnvironmentAvailable
3092+ (\ s a -> s{_lmFlexibleEnvironmentAvailable = a})
3094+instance FromJSON LocationMetadata where
3096+ = withObject "LocationMetadata"
3098+ LocationMetadata' <$>
3099+ (o .:? "standardEnvironmentAvailable") <*>
3100+ (o .:? "flexibleEnvironmentAvailable"))
3102+instance ToJSON LocationMetadata where
3103+ toJSON LocationMetadata'{..}
3106+ [("standardEnvironmentAvailable" .=) <$>
3107+ _lmStandardEnvironmentAvailable,
3108+ ("flexibleEnvironmentAvailable" .=) <$>
3109+ _lmFlexibleEnvironmentAvailable])
2706-- | Metadata for the given google.longrunning.Operation.
3111-- | Metadata for the given google.longrunning.Operation.
2708-- /See:/ 'operationMetadata' smart constructor.
3113-- /See:/ 'operationMetadata' smart constructor.
@@ -2742,35 +3147,34 @@ operationMetadata =
2742 , _omTarget = Nothing
3147 , _omTarget = Nothing
2745−-- | Timestamp that this operation was received. \'OutputOnly
3150+-- | Timestamp that this operation was created. \'OutputOnly
2746omInsertTime :: Lens' OperationMetadata (Maybe Text)
3151omInsertTime :: Lens' OperationMetadata (Maybe Text)
2747omInsertTime
3152omInsertTime
2748 = lens _omInsertTime (\ s a -> s{_omInsertTime = a})
3153 = lens _omInsertTime (\ s a -> s{_omInsertTime = a})
2750−-- | The user who requested this operation. \'OutputOnly
3155+-- | User who requested this operation. \'OutputOnly
2751omUser :: Lens' OperationMetadata (Maybe Text)
3156omUser :: Lens' OperationMetadata (Maybe Text)
2752omUser = lens _omUser (\ s a -> s{_omUser = a})
3157omUser = lens _omUser (\ s a -> s{_omUser = a})
2754−-- | API method name that initiated the operation. Example:
3159+-- | API method that initiated this operation. Example:
2755−-- \"google.appengine.v1beta4.Version.CreateVersion\". \'OutputOnly
3160+-- \`google.appengine.v1beta4.Version.CreateVersion\`. \'OutputOnly
2756omMethod :: Lens' OperationMetadata (Maybe Text)
3161omMethod :: Lens' OperationMetadata (Maybe Text)
2757omMethod = lens _omMethod (\ s a -> s{_omMethod = a})
3162omMethod = lens _omMethod (\ s a -> s{_omMethod = a})
2759−-- | Timestamp that this operation was completed. (Not present if the
3164+-- | Timestamp that this operation completed. \'OutputOnly
2760−-- operation is still in progress.) \'OutputOnly
2761omEndTime :: Lens' OperationMetadata (Maybe Text)
3165omEndTime :: Lens' OperationMetadata (Maybe Text)
2762omEndTime
3166omEndTime
2763 = lens _omEndTime (\ s a -> s{_omEndTime = a})
3167 = lens _omEndTime (\ s a -> s{_omEndTime = a})
2765−-- | The type of the operation (deprecated, use method field instead).
3169+-- | Type of this operation. Deprecated, use method field instead. Example:
2766−-- Example: \"create_version\". \'OutputOnly
3170+-- \"create_version\". \'OutputOnly
2767omOperationType :: Lens' OperationMetadata (Maybe Text)
3171omOperationType :: Lens' OperationMetadata (Maybe Text)
2768omOperationType
3172omOperationType
2769 = lens _omOperationType
3173 = lens _omOperationType
2770 (\ s a -> s{_omOperationType = a})
3174 (\ s a -> s{_omOperationType = a})
2772−-- | Resource that this operation is acting on. Example:
3176+-- | Name of the resource that this operation is acting on. Example:
2773−-- \"apps\/myapp\/modules\/default\". \'OutputOnly
3177+-- \`apps\/myapp\/modules\/default\`. \'OutputOnly
2774omTarget :: Lens' OperationMetadata (Maybe Text)
3178omTarget :: Lens' OperationMetadata (Maybe Text)
2775omTarget = lens _omTarget (\ s a -> s{_omTarget = a})
3179omTarget = lens _omTarget (\ s a -> s{_omTarget = a})
@@ -2846,12 +3250,12 @@ instance ToJSON ListInstancesResponse where
2846 [("nextPageToken" .=) <$> _lirNextPageToken,
3250 [("nextPageToken" .=) <$> _lirNextPageToken,
2847 ("instances" .=) <$> _lirInstances])
3251 ("instances" .=) <$> _lirInstances])
2849−-- | Target scaling by request utilization (for VM runtimes only).
3253+-- | Target scaling by request utilization. Only applicable for VM runtimes.
2851-- /See:/ 'requestUtilization' smart constructor.
3255-- /See:/ 'requestUtilization' smart constructor.
2852data RequestUtilization = RequestUtilization'
3256data RequestUtilization = RequestUtilization'
2853− { _ruTargetConcurrentRequests :: !(Maybe (Textual Int32))
3257+ { _ruTargetConcurrentRequests :: !(Maybe (Textual Int32))
2854− , _ruTargetRequestCountPerSec :: !(Maybe (Textual Int32))
3258+ , _ruTargetRequestCountPerSecond :: !(Maybe (Textual Int32))
2855 } deriving (Eq,Show,Data,Typeable,Generic)
3259 } deriving (Eq,Show,Data,Typeable,Generic)
2857-- | Creates a value of 'RequestUtilization' with the minimum fields required to make a request.
3261-- | Creates a value of 'RequestUtilization' with the minimum fields required to make a request.
@@ -2860,13 +3264,13 @@ data RequestUtilization = RequestUtilization'
2861-- * 'ruTargetConcurrentRequests'
3265-- * 'ruTargetConcurrentRequests'
2863−-- * 'ruTargetRequestCountPerSec'
3267+-- * 'ruTargetRequestCountPerSecond'
2864requestUtilization
3268requestUtilization
2865 :: RequestUtilization
3269 :: RequestUtilization
2866requestUtilization =
3270requestUtilization =
2867 RequestUtilization'
3271 RequestUtilization'
2868 { _ruTargetConcurrentRequests = Nothing
3272 { _ruTargetConcurrentRequests = Nothing
2869− , _ruTargetRequestCountPerSec = Nothing
3273+ , _ruTargetRequestCountPerSecond = Nothing
2872-- | Target number of concurrent requests.
3276-- | Target number of concurrent requests.
@@ -2877,10 +3281,10 @@ ruTargetConcurrentRequests
2877 . mapping _Coerce
3281 . mapping _Coerce
2879-- | Target requests per second.
3283-- | Target requests per second.
2880−ruTargetRequestCountPerSec :: Lens' RequestUtilization (Maybe Int32)
3284+ruTargetRequestCountPerSecond :: Lens' RequestUtilization (Maybe Int32)
2881−ruTargetRequestCountPerSec
3285+ruTargetRequestCountPerSecond
2882− = lens _ruTargetRequestCountPerSec
3286+ = lens _ruTargetRequestCountPerSecond
2883− (\ s a -> s{_ruTargetRequestCountPerSec = a})
3287+ (\ s a -> s{_ruTargetRequestCountPerSecond = a})
2884 . mapping _Coerce
3288 . mapping _Coerce
2886instance FromJSON RequestUtilization where
3290instance FromJSON RequestUtilization where
@@ -2889,7 +3293,7 @@ instance FromJSON RequestUtilization where
2890 RequestUtilization' <$>
3294 RequestUtilization' <$>
2891 (o .:? "targetConcurrentRequests") <*>
3295 (o .:? "targetConcurrentRequests") <*>
2892− (o .:? "targetRequestCountPerSec"))
3296+ (o .:? "targetRequestCountPerSecond"))
2894instance ToJSON RequestUtilization where
3298instance ToJSON RequestUtilization where
2895 toJSON RequestUtilization'{..}
3299 toJSON RequestUtilization'{..}
@@ -2897,59 +3301,29 @@ instance ToJSON RequestUtilization where
2897 (catMaybes
3301 (catMaybes
2898 [("targetConcurrentRequests" .=) <$>
3302 [("targetConcurrentRequests" .=) <$>
2899 _ruTargetConcurrentRequests,
3303 _ruTargetConcurrentRequests,
2900− ("targetRequestCountPerSec" .=) <$>
3304+ ("targetRequestCountPerSecond" .=) <$>
2901− _ruTargetRequestCountPerSec])
3305+ _ruTargetRequestCountPerSecond])
2903−-- | A reference to a particular snapshot of the source tree used to build
3307+-- | Request message for \'Applications.RepairApplication\'.
2904−-- and deploy the application.
2906−-- /See:/ 'sourceReference' smart constructor.
3309+-- /See:/ 'repairApplicationRequest' smart constructor.
2907−data SourceReference = SourceReference'
3310+data RepairApplicationRequest =
2908− { _srRepository :: !(Maybe Text)
3311+ RepairApplicationRequest'
2909− , _srRevisionId :: !(Maybe Text)
2910− } deriving (Eq,Show,Data,Typeable,Generic)
3312+ deriving (Eq,Show,Data,Typeable,Generic)
2912−-- | Creates a value of 'SourceReference' with the minimum fields required to make a request.
3314+-- | Creates a value of 'RepairApplicationRequest' with the minimum fields required to make a request.
2914−-- Use one of the following lenses to modify other fields as desired:
2918−-- * 'srRevisionId'
3316+repairApplicationRequest
2919−sourceReference
3317+ :: RepairApplicationRequest
2920− :: SourceReference
3318+repairApplicationRequest = RepairApplicationRequest'
2923− { _srRepository = Nothing
2924− , _srRevisionId = Nothing
2927−-- | Optional. A URI string identifying the repository. Example:
2928−-- \"https:\/\/source.developers.google.com\/p\/app-123\/r\/default\"
2929−srRepository :: Lens' SourceReference (Maybe Text)
2931− = lens _srRepository (\ s a -> s{_srRepository = a})
2933−-- | The canonical (and persistent) identifier of the deployed revision, i.e.
2934−-- any kind of aliases including tags or branch names are not allowed.
2935−-- Example (git): \"2198322f89e0bb2e25021667c2ed489d1fd34e6b\"
2936−srRevisionId :: Lens' SourceReference (Maybe Text)
2938− = lens _srRevisionId (\ s a -> s{_srRevisionId = a})
2940−instance FromJSON SourceReference where
3320+instance FromJSON RepairApplicationRequest where
2941 parseJSON
3321 parseJSON
2942− = withObject "SourceReference"
3322+ = withObject "RepairApplicationRequest"
2943− (\ o ->
3323+ (\ o -> pure RepairApplicationRequest')
2944− SourceReference' <$>
2945− (o .:? "repository") <*> (o .:? "revisionId"))
2947−instance ToJSON SourceReference where
3325+instance ToJSON RepairApplicationRequest where
2948− toJSON SourceReference'{..}
3326+ toJSON = const emptyObject
2951− [("repository" .=) <$> _srRepository,
2952− ("revisionId" .=) <$> _srRevisionId])
2954-- | The normal response of the operation in case of success. If the original
3328-- | The normal response of the operation in case of success. If the original
2955-- method returns no data on success, such as \`Delete\`, the response is
3329-- method returns no data on success, such as \`Delete\`, the response is
@@ -2978,7 +3352,7 @@ operationResponse pOrAddtional_ =
2978 { _orAddtional = _Coerce # pOrAddtional_
3352 { _orAddtional = _Coerce # pOrAddtional_
2981−-- | Properties of the object. Contains field \'ype with type URL.
3355+-- | Properties of the object. Contains field \'type with type URL.
2982orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)
3356orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)
2983orAddtional
3357orAddtional
2984 = lens _orAddtional (\ s a -> s{_orAddtional = a}) .
3358 = lens _orAddtional (\ s a -> s{_orAddtional = a}) .
@@ -2992,8 +3366,8 @@ instance FromJSON OperationResponse where
2992instance ToJSON OperationResponse where
3366instance ToJSON OperationResponse where
2993 toJSON = toJSON . _orAddtional
3367 toJSON = toJSON . _orAddtional
2995−-- | A Docker (container) image which should be used to start the
3369+-- | Docker image that is used to start a VM container for the version you
2996−-- application.
3370+-- deploy.
2998-- /See:/ 'containerInfo' smart constructor.
3372-- /See:/ 'containerInfo' smart constructor.
2999newtype ContainerInfo = ContainerInfo'
3373newtype ContainerInfo = ContainerInfo'
@@ -3012,9 +3386,10 @@ containerInfo =
3012 { _ciImage = Nothing
3386 { _ciImage = Nothing
3015−-- | Reference to a hosted container image. Must be a URI to a resource in a
3389+-- | URI to the hosted container image in a Docker repository. The URI must
3016−-- Docker repository. Must be fully qualified, including tag or digest.
3390+-- be fully qualified and include a tag or digest. Examples:
3391+-- \"gcr.io\/my-project\/image:tag\" or
3017−-- e.g. gcr.io\/my-project\/image:tag or gcr.io\/my-project\/image\'digest
3392+-- \"gcr.io\/my-project\/image\'digest\"
3018ciImage :: Lens' ContainerInfo (Maybe Text)
3393ciImage :: Lens' ContainerInfo (Maybe Text)
3019ciImage = lens _ciImage (\ s a -> s{_ciImage = a})
3394ciImage = lens _ciImage (\ s a -> s{_ciImage = a})
@@ -3027,25 +3402,25 @@ instance ToJSON ContainerInfo where
3027 toJSON ContainerInfo'{..}
3402 toJSON ContainerInfo'{..}
3028 = object (catMaybes [("image" .=) <$> _ciImage])
3403 = object (catMaybes [("image" .=) <$> _ciImage])
3030−-- | Instances are the computing units that App Engine uses to automatically
3405+-- | An Instance resource is the computing unit that App Engine uses to
3031−-- scale an application.
3406+-- automatically scale an application.
3033-- /See:/ 'instance'' smart constructor.
3408-- /See:/ 'instance'' smart constructor.
3034data Instance = Instance'
3409data Instance = Instance'
3035 { _iMemoryUsage :: !(Maybe (Textual Int64))
3410 { _iMemoryUsage :: !(Maybe (Textual Int64))
3036 , _iVMStatus :: !(Maybe Text)
3411 , _iVMStatus :: !(Maybe Text)
3037 , _iVMZoneName :: !(Maybe Text)
3412 , _iVMZoneName :: !(Maybe Text)
3413+ , _iStartTime :: !(Maybe Text)
3038 , _iVMId :: !(Maybe Text)
3414 , _iVMId :: !(Maybe Text)
3039 , _iAvailability :: !(Maybe Text)
3415 , _iAvailability :: !(Maybe Text)
3040 , _iVMName :: !(Maybe Text)
3416 , _iVMName :: !(Maybe Text)
3041 , _iName :: !(Maybe Text)
3417 , _iName :: !(Maybe Text)
3042− , _iVMUnlocked :: !(Maybe Bool)
3418+ , _iVMDebugEnabled :: !(Maybe Bool)
3043 , _iRequests :: !(Maybe (Textual Int32))
3419 , _iRequests :: !(Maybe (Textual Int32))
3044 , _iQps :: !(Maybe (Textual Double))
3420 , _iQps :: !(Maybe (Textual Double))
3045 , _iId :: !(Maybe Text)
3421 , _iId :: !(Maybe Text)
3046− , _iErrors :: !(Maybe (Textual Word32))
3422+ , _iErrors :: !(Maybe (Textual Int32))
3047 , _iAverageLatency :: !(Maybe (Textual Int32))
3423 , _iAverageLatency :: !(Maybe (Textual Int32))
3048− , _iStartTimestamp :: !(Maybe Text)
3049 , _iAppEngineRelease :: !(Maybe Text)
3424 , _iAppEngineRelease :: !(Maybe Text)
3050 } deriving (Eq,Show,Data,Typeable,Generic)
3425 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3059,6 +3434,8 @@ data Instance = Instance'
3060-- * 'iVMZoneName'
3435-- * 'iVMZoneName'
3062-- * 'iVMId'
3439-- * 'iVMId'
3064-- * 'iAvailability'
3441-- * 'iAvailability'
@@ -3067,7 +3444,7 @@ data Instance = Instance'
3068-- * 'iName'
3445-- * 'iName'
3070−-- * 'iVMUnlocked'
3447+-- * 'iVMDebugEnabled'
3072-- * 'iRequests'
3449-- * 'iRequests'
@@ -3079,8 +3456,6 @@ data Instance = Instance'
3080-- * 'iAverageLatency'
3457-- * 'iAverageLatency'
3082−-- * 'iStartTimestamp'
3084-- * 'iAppEngineRelease'
3459-- * 'iAppEngineRelease'
3085instance'
3460instance'
3086 :: Instance
3461 :: Instance
@@ -3089,102 +3464,103 @@ instance' =
3089 { _iMemoryUsage = Nothing
3464 { _iMemoryUsage = Nothing
3090 , _iVMStatus = Nothing
3465 , _iVMStatus = Nothing
3091 , _iVMZoneName = Nothing
3466 , _iVMZoneName = Nothing
3467+ , _iStartTime = Nothing
3092 , _iVMId = Nothing
3468 , _iVMId = Nothing
3093 , _iAvailability = Nothing
3469 , _iAvailability = Nothing
3094 , _iVMName = Nothing
3470 , _iVMName = Nothing
3095 , _iName = Nothing
3471 , _iName = Nothing
3096− , _iVMUnlocked = Nothing
3472+ , _iVMDebugEnabled = Nothing
3097 , _iRequests = Nothing
3473 , _iRequests = Nothing
3098 , _iQps = Nothing
3474 , _iQps = Nothing
3099 , _iId = Nothing
3475 , _iId = Nothing
3100 , _iErrors = Nothing
3476 , _iErrors = Nothing
3101 , _iAverageLatency = Nothing
3477 , _iAverageLatency = Nothing
3102− , _iStartTimestamp = Nothing
3103 , _iAppEngineRelease = Nothing
3478 , _iAppEngineRelease = Nothing
3106−-- | Memory usage (in bytes). \'OutputOnly
3481+-- | Total memory in use (bytes). \'OutputOnly
3107iMemoryUsage :: Lens' Instance (Maybe Int64)
3482iMemoryUsage :: Lens' Instance (Maybe Int64)
3108iMemoryUsage
3483iMemoryUsage
3109 = lens _iMemoryUsage (\ s a -> s{_iMemoryUsage = a})
3484 = lens _iMemoryUsage (\ s a -> s{_iMemoryUsage = a})
3110 . mapping _Coerce
3485 . mapping _Coerce
3112−-- | For VMEngines instances, the status of GCE VM where the instance lives.
3487+-- | Status of the virtual machine where this instance lives. Only applicable
3113−-- \'OutputOnly
3488+-- for instances in App Engine flexible environment. \'OutputOnly
3114iVMStatus :: Lens' Instance (Maybe Text)
3489iVMStatus :: Lens' Instance (Maybe Text)
3115iVMStatus
3490iVMStatus
3116 = lens _iVMStatus (\ s a -> s{_iVMStatus = a})
3491 = lens _iVMStatus (\ s a -> s{_iVMStatus = a})
3118−-- | For VMEngines instances, the zone where the GCE VM is located.
3493+-- | Zone where the virtual machine is located. Only applicable for instances
3119−-- \'OutputOnly
3494+-- in App Engine flexible environment. \'OutputOnly
3120iVMZoneName :: Lens' Instance (Maybe Text)
3495iVMZoneName :: Lens' Instance (Maybe Text)
3121iVMZoneName
3496iVMZoneName
3122 = lens _iVMZoneName (\ s a -> s{_iVMZoneName = a})
3497 = lens _iVMZoneName (\ s a -> s{_iVMZoneName = a})
3124−-- | For VMEngines instances, the GCE VM ID of the instance. \'OutputOnly
3499+-- | Time that this instance was started. \'OutputOnly
3500+iStartTime :: Lens' Instance (Maybe Text)
3502+ = lens _iStartTime (\ s a -> s{_iStartTime = a})
3504+-- | Virtual machine ID of this instance. Only applicable for instances in
3505+-- App Engine flexible environment. \'OutputOnly
3125iVMId :: Lens' Instance (Maybe Text)
3506iVMId :: Lens' Instance (Maybe Text)
3126iVMId = lens _iVMId (\ s a -> s{_iVMId = a})
3507iVMId = lens _iVMId (\ s a -> s{_iVMId = a})
3128−-- | Availability of instance. \'OutputOnly
3509+-- | Availability of the instance. \'OutputOnly
3129iAvailability :: Lens' Instance (Maybe Text)
3510iAvailability :: Lens' Instance (Maybe Text)
3130iAvailability
3511iAvailability
3131 = lens _iAvailability
3512 = lens _iAvailability
3132 (\ s a -> s{_iAvailability = a})
3513 (\ s a -> s{_iAvailability = a})
3134−-- | For VMEngines instances, the name of GCE VM where the instance lives.
3515+-- | Name of the virtual machine where this instance lives. Only applicable
3135−-- \'OutputOnly
3516+-- for instances in App Engine flexible environment. \'OutputOnly
3136iVMName :: Lens' Instance (Maybe Text)
3517iVMName :: Lens' Instance (Maybe Text)
3137iVMName = lens _iVMName (\ s a -> s{_iVMName = a})
3518iVMName = lens _iVMName (\ s a -> s{_iVMName = a})
3139−-- | The full path to the Instance resource in the API. Example:
3520+-- | Full path to the Instance resource in the API. Example:
3140−-- \"apps\/myapp\/services\/default\/versions\/v1\/instances\/instance-1\"
3521+-- \`apps\/myapp\/services\/default\/versions\/v1\/instances\/instance-1\`.
3141-- \'OutputOnly
3522-- \'OutputOnly
3142iName :: Lens' Instance (Maybe Text)
3523iName :: Lens' Instance (Maybe Text)
3143iName = lens _iName (\ s a -> s{_iName = a})
3524iName = lens _iName (\ s a -> s{_iName = a})
3145−-- | For VMEngines instances, whether the instance has been unlocked.
3526+-- | Whether this instance is in debug mode. Only applicable for instances in
3146−-- \'OutputOnly
3527+-- App Engine flexible environment. \'OutputOnly
3147−iVMUnlocked :: Lens' Instance (Maybe Bool)
3528+iVMDebugEnabled :: Lens' Instance (Maybe Bool)
3148−iVMUnlocked
3529+iVMDebugEnabled
3149− = lens _iVMUnlocked (\ s a -> s{_iVMUnlocked = a})
3530+ = lens _iVMDebugEnabled
3531+ (\ s a -> s{_iVMDebugEnabled = a})
3151−-- | Number of requests (since the clone was started). \'OutputOnly
3533+-- | Number of requests since this instance was started. \'OutputOnly
3152iRequests :: Lens' Instance (Maybe Int32)
3534iRequests :: Lens' Instance (Maybe Int32)
3153iRequests
3535iRequests
3154 = lens _iRequests (\ s a -> s{_iRequests = a}) .
3536 = lens _iRequests (\ s a -> s{_iRequests = a}) .
3155 mapping _Coerce
3537 mapping _Coerce
3157−-- | QPS for this instance (averaged over the last minute). \'OutputOnly
3539+-- | Average queries per second (QPS) over the last minute. \'OutputOnly
3158iQps :: Lens' Instance (Maybe Double)
3540iQps :: Lens' Instance (Maybe Double)
3160 = lens _iQps (\ s a -> s{_iQps = a}) .
3542 = lens _iQps (\ s a -> s{_iQps = a}) .
3161 mapping _Coerce
3543 mapping _Coerce
3163−-- | The relative name\/path of the instance within the version. Example:
3545+-- | Relative name of the instance within the version. Example:
3164−-- \"instance-1\" \'OutputOnly
3546+-- \`instance-1\`. \'OutputOnly
3165iId :: Lens' Instance (Maybe Text)
3547iId :: Lens' Instance (Maybe Text)
3166iId = lens _iId (\ s a -> s{_iId = a})
3548iId = lens _iId (\ s a -> s{_iId = a})
3168−-- | Number of errors since the instance was started. \'OutputOnly
3550+-- | Number of errors since this instance was started. \'OutputOnly
3169−iErrors :: Lens' Instance (Maybe Word32)
3551+iErrors :: Lens' Instance (Maybe Int32)
3171 = lens _iErrors (\ s a -> s{_iErrors = a}) .
3553 = lens _iErrors (\ s a -> s{_iErrors = a}) .
3172 mapping _Coerce
3554 mapping _Coerce
3174−-- | Latency in milliseconds (averaged over the last minute). \'OutputOnly
3556+-- | Average latency (ms) over the last minute. \'OutputOnly
3175iAverageLatency :: Lens' Instance (Maybe Int32)
3557iAverageLatency :: Lens' Instance (Maybe Int32)
3176iAverageLatency
3558iAverageLatency
3177 = lens _iAverageLatency
3559 = lens _iAverageLatency
3178 (\ s a -> s{_iAverageLatency = a})
3560 (\ s a -> s{_iAverageLatency = a})
3179 . mapping _Coerce
3561 . mapping _Coerce
3181−-- | Time when instance was started. \'OutputOnly
3563+-- | App Engine release this instance is running on. \'OutputOnly
3182−iStartTimestamp :: Lens' Instance (Maybe Text)
3184− = lens _iStartTimestamp
3185− (\ s a -> s{_iStartTimestamp = a})
3187−-- | The App Engine release the instance is running on. \'OutputOnly
3188iAppEngineRelease :: Lens' Instance (Maybe Text)
3564iAppEngineRelease :: Lens' Instance (Maybe Text)
3189iAppEngineRelease
3565iAppEngineRelease
3190 = lens _iAppEngineRelease
3566 = lens _iAppEngineRelease
@@ -3197,17 +3573,17 @@ instance FromJSON Instance where
3197 Instance' <$>
3573 Instance' <$>
3198 (o .:? "memoryUsage") <*> (o .:? "vmStatus") <*>
3574 (o .:? "memoryUsage") <*> (o .:? "vmStatus") <*>
3199 (o .:? "vmZoneName")
3575 (o .:? "vmZoneName")
3576+ <*> (o .:? "startTime")
3200 <*> (o .:? "vmId")
3577 <*> (o .:? "vmId")
3201 <*> (o .:? "availability")
3578 <*> (o .:? "availability")
3202 <*> (o .:? "vmName")
3579 <*> (o .:? "vmName")
3203 <*> (o .:? "name")
3580 <*> (o .:? "name")
3204− <*> (o .:? "vmUnlocked")
3581+ <*> (o .:? "vmDebugEnabled")
3205 <*> (o .:? "requests")
3582 <*> (o .:? "requests")
3206 <*> (o .:? "qps")
3583 <*> (o .:? "qps")
3207 <*> (o .:? "id")
3584 <*> (o .:? "id")
3208 <*> (o .:? "errors")
3585 <*> (o .:? "errors")
3209 <*> (o .:? "averageLatency")
3586 <*> (o .:? "averageLatency")
3210− <*> (o .:? "startTimestamp")
3211 <*> (o .:? "appEngineRelease"))
3587 <*> (o .:? "appEngineRelease"))
3213instance ToJSON Instance where
3589instance ToJSON Instance where
@@ -3217,77 +3593,71 @@ instance ToJSON Instance where
3217 [("memoryUsage" .=) <$> _iMemoryUsage,
3593 [("memoryUsage" .=) <$> _iMemoryUsage,
3218 ("vmStatus" .=) <$> _iVMStatus,
3594 ("vmStatus" .=) <$> _iVMStatus,
3219 ("vmZoneName" .=) <$> _iVMZoneName,
3595 ("vmZoneName" .=) <$> _iVMZoneName,
3596+ ("startTime" .=) <$> _iStartTime,
3220 ("vmId" .=) <$> _iVMId,
3597 ("vmId" .=) <$> _iVMId,
3221 ("availability" .=) <$> _iAvailability,
3598 ("availability" .=) <$> _iAvailability,
3222 ("vmName" .=) <$> _iVMName, ("name" .=) <$> _iName,
3599 ("vmName" .=) <$> _iVMName, ("name" .=) <$> _iName,
3223− ("vmUnlocked" .=) <$> _iVMUnlocked,
3600+ ("vmDebugEnabled" .=) <$> _iVMDebugEnabled,
3224 ("requests" .=) <$> _iRequests, ("qps" .=) <$> _iQps,
3601 ("requests" .=) <$> _iRequests, ("qps" .=) <$> _iQps,
3225 ("id" .=) <$> _iId, ("errors" .=) <$> _iErrors,
3602 ("id" .=) <$> _iId, ("errors" .=) <$> _iErrors,
3226 ("averageLatency" .=) <$> _iAverageLatency,
3603 ("averageLatency" .=) <$> _iAverageLatency,
3227− ("startTimestamp" .=) <$> _iStartTimestamp,
3228 ("appEngineRelease" .=) <$> _iAppEngineRelease])
3604 ("appEngineRelease" .=) <$> _iAppEngineRelease])
3230-- | Code and application artifacts used to deploy a version to App Engine.
3606-- | Code and application artifacts used to deploy a version to App Engine.
3232-- /See:/ 'deployment' smart constructor.
3608-- /See:/ 'deployment' smart constructor.
3233data Deployment = Deployment'
3609data Deployment = Deployment'
3234− { _dContainer :: !(Maybe ContainerInfo)
3610+ { _dZip :: !(Maybe ZipInfo)
3235− , _dFiles :: !(Maybe DeploymentFiles)
3611+ , _dContainer :: !(Maybe ContainerInfo)
3236− , _dSourceReferences :: !(Maybe [SourceReference])
3612+ , _dFiles :: !(Maybe DeploymentFiles)
3237 } deriving (Eq,Show,Data,Typeable,Generic)
3613 } deriving (Eq,Show,Data,Typeable,Generic)
3239-- | Creates a value of 'Deployment' with the minimum fields required to make a request.
3615-- | Creates a value of 'Deployment' with the minimum fields required to make a request.
3241-- Use one of the following lenses to modify other fields as desired:
3617-- Use one of the following lenses to modify other fields as desired:
3243-- * 'dContainer'
3621-- * 'dContainer'
3245-- * 'dFiles'
3623-- * 'dFiles'
3247−-- * 'dSourceReferences'
3248deployment
3624deployment
3249 :: Deployment
3625 :: Deployment
3250deployment =
3626deployment =
3251 Deployment'
3627 Deployment'
3252− { _dContainer = Nothing
3628+ { _dZip = Nothing
3629+ , _dContainer = Nothing
3253 , _dFiles = Nothing
3630 , _dFiles = Nothing
3254− , _dSourceReferences = Nothing
3257−-- | If supplied, a docker (container) image which should be used to start
3633+-- | The zip file for this deployment, if this is a zip deployment.
3258−-- the application. Only applicable to the \'vm\' runtime.
3634+dZip :: Lens' Deployment (Maybe ZipInfo)
3635+dZip = lens _dZip (\ s a -> s{_dZip = a})
3637+-- | A Docker image that App Engine uses to run the version. Only applicable
3638+-- for instances in App Engine flexible environment.
3259dContainer :: Lens' Deployment (Maybe ContainerInfo)
3639dContainer :: Lens' Deployment (Maybe ContainerInfo)
3260dContainer
3640dContainer
3261 = lens _dContainer (\ s a -> s{_dContainer = a})
3641 = lens _dContainer (\ s a -> s{_dContainer = a})
3263−-- | A manifest of files stored in Google Cloud Storage which should be
3643+-- | Manifest of the files stored in Google Cloud Storage that are included
3264−-- included as part of this application. All files must be readable using
3644+-- as part of this version. All files must be readable using the
3265−-- the credentials supplied with this call.
3645+-- credentials supplied with this call.
3266dFiles :: Lens' Deployment (Maybe DeploymentFiles)
3646dFiles :: Lens' Deployment (Maybe DeploymentFiles)
3267dFiles = lens _dFiles (\ s a -> s{_dFiles = a})
3647dFiles = lens _dFiles (\ s a -> s{_dFiles = a})
3269−-- | The origin of the source code for this deployment. There can be more
3270−-- than one source reference per Version if source code is distributed
3271−-- among multiple repositories.
3272−dSourceReferences :: Lens' Deployment [SourceReference]
3274− = lens _dSourceReferences
3275− (\ s a -> s{_dSourceReferences = a})
3279instance FromJSON Deployment where
3649instance FromJSON Deployment where
3280 parseJSON
3650 parseJSON
3281 = withObject "Deployment"
3651 = withObject "Deployment"
3283 Deployment' <$>
3653 Deployment' <$>
3284− (o .:? "container") <*> (o .:? "files") <*>
3654+ (o .:? "zip") <*> (o .:? "container") <*>
3285− (o .:? "sourceReferences" .!= mempty))
3655+ (o .:? "files"))
3287instance ToJSON Deployment where
3657instance ToJSON Deployment where
3288 toJSON Deployment'{..}
3658 toJSON Deployment'{..}
3289 = object
3659 = object
3290 (catMaybes
3660 (catMaybes
3291− [("container" .=) <$> _dContainer,
3661+ [("zip" .=) <$> _dZip,
3292− ("files" .=) <$> _dFiles,
3662+ ("container" .=) <$> _dContainer,
3293− ("sourceReferences" .=) <$> _dSourceReferences])
3663+ ("files" .=) <$> _dFiles])