google-cloud-app_engine-v1 0.2.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/appengine/v1/instance_pb.rb +15 -0
- data/lib/google/appengine/v1/location_pb.rb +2 -0
- data/lib/google/appengine/v1/network_settings_pb.rb +11 -0
- data/lib/google/appengine/v1/operation_pb.rb +1 -0
- data/lib/google/appengine/v1/service_pb.rb +2 -0
- data/lib/google/appengine/v1/version_pb.rb +4 -0
- data/lib/google/cloud/app_engine/v1/applications/client.rb +42 -41
- data/lib/google/cloud/app_engine/v1/applications/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +45 -42
- data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +33 -38
- data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +45 -42
- data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/firewall/client.rb +48 -43
- data/lib/google/cloud/app_engine/v1/instances/client.rb +42 -41
- data/lib/google/cloud/app_engine/v1/instances/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/services/client.rb +42 -41
- data/lib/google/cloud/app_engine/v1/services/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/version.rb +1 -1
- data/lib/google/cloud/app_engine/v1/versions/client.rb +45 -42
- data/lib/google/cloud/app_engine/v1/versions/operations.rb +34 -25
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/appengine/v1/instance.rb +71 -32
- data/proto_docs/google/appengine/v1/location.rb +4 -0
- data/proto_docs/google/appengine/v1/network_settings.rb +51 -0
- data/proto_docs/google/appengine/v1/service.rb +3 -0
- data/proto_docs/google/appengine/v1/version.rb +26 -1
- metadata +15 -7
@@ -23,66 +23,105 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# An Instance resource is the computing unit that App Engine uses to
|
25
25
|
# automatically scale an application.
|
26
|
-
# @!attribute [
|
26
|
+
# @!attribute [r] name
|
27
27
|
# @return [::String]
|
28
|
-
# Full path to the Instance resource in the API.
|
28
|
+
# Output only. Full path to the Instance resource in the API.
|
29
29
|
# Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
|
30
|
-
# @!attribute [
|
30
|
+
# @!attribute [r] id
|
31
31
|
# @return [::String]
|
32
|
-
# Relative name of the instance within the version.
|
32
|
+
# Output only. Relative name of the instance within the version.
|
33
33
|
# Example: `instance-1`.
|
34
|
-
# @!attribute [
|
34
|
+
# @!attribute [r] app_engine_release
|
35
35
|
# @return [::String]
|
36
|
-
# App Engine release this instance is running on.
|
37
|
-
# @!attribute [
|
36
|
+
# Output only. App Engine release this instance is running on.
|
37
|
+
# @!attribute [r] availability
|
38
38
|
# @return [::Google::Cloud::AppEngine::V1::Instance::Availability]
|
39
|
-
# Availability of the instance.
|
40
|
-
# @!attribute [
|
39
|
+
# Output only. Availability of the instance.
|
40
|
+
# @!attribute [r] vm_name
|
41
41
|
# @return [::String]
|
42
|
-
# Name of the virtual machine where this instance lives. Only applicable
|
42
|
+
# Output only. Name of the virtual machine where this instance lives. Only applicable
|
43
43
|
# for instances in App Engine flexible environment.
|
44
|
-
# @!attribute [
|
44
|
+
# @!attribute [r] vm_zone_name
|
45
45
|
# @return [::String]
|
46
|
-
# Zone where the virtual machine is located. Only applicable for instances
|
46
|
+
# Output only. Zone where the virtual machine is located. Only applicable for instances
|
47
47
|
# in App Engine flexible environment.
|
48
|
-
# @!attribute [
|
48
|
+
# @!attribute [r] vm_id
|
49
49
|
# @return [::String]
|
50
|
-
# Virtual machine ID of this instance. Only applicable for instances in
|
50
|
+
# Output only. Virtual machine ID of this instance. Only applicable for instances in
|
51
51
|
# App Engine flexible environment.
|
52
|
-
# @!attribute [
|
52
|
+
# @!attribute [r] start_time
|
53
53
|
# @return [::Google::Protobuf::Timestamp]
|
54
|
-
# Time that this instance was started.
|
55
|
-
# @!attribute [
|
54
|
+
# Output only. Time that this instance was started.
|
55
|
+
# @!attribute [r] requests
|
56
56
|
# @return [::Integer]
|
57
|
-
# Number of requests since this instance was started.
|
58
|
-
# @!attribute [
|
57
|
+
# Output only. Number of requests since this instance was started.
|
58
|
+
# @!attribute [r] errors
|
59
59
|
# @return [::Integer]
|
60
|
-
# Number of errors since this instance was started.
|
61
|
-
# @!attribute [
|
60
|
+
# Output only. Number of errors since this instance was started.
|
61
|
+
# @!attribute [r] qps
|
62
62
|
# @return [::Float]
|
63
|
-
# Average queries per second (QPS) over the last minute.
|
64
|
-
# @!attribute [
|
63
|
+
# Output only. Average queries per second (QPS) over the last minute.
|
64
|
+
# @!attribute [r] average_latency
|
65
65
|
# @return [::Integer]
|
66
|
-
# Average latency (ms) over the last minute.
|
67
|
-
# @!attribute [
|
66
|
+
# Output only. Average latency (ms) over the last minute.
|
67
|
+
# @!attribute [r] memory_usage
|
68
68
|
# @return [::Integer]
|
69
|
-
# Total memory in use (bytes).
|
70
|
-
# @!attribute [
|
69
|
+
# Output only. Total memory in use (bytes).
|
70
|
+
# @!attribute [r] vm_status
|
71
71
|
# @return [::String]
|
72
|
-
# Status of the virtual machine where this instance lives. Only applicable
|
72
|
+
# Output only. Status of the virtual machine where this instance lives. Only applicable
|
73
73
|
# for instances in App Engine flexible environment.
|
74
|
-
# @!attribute [
|
74
|
+
# @!attribute [r] vm_debug_enabled
|
75
75
|
# @return [::Boolean]
|
76
|
-
# Whether this instance is in debug mode. Only applicable for instances in
|
76
|
+
# Output only. Whether this instance is in debug mode. Only applicable for instances in
|
77
77
|
# App Engine flexible environment.
|
78
|
-
# @!attribute [
|
78
|
+
# @!attribute [r] vm_ip
|
79
79
|
# @return [::String]
|
80
|
-
# The IP address of this instance. Only applicable for instances in App
|
80
|
+
# Output only. The IP address of this instance. Only applicable for instances in App
|
81
81
|
# Engine flexible environment.
|
82
|
+
# @!attribute [r] vm_liveness
|
83
|
+
# @return [::Google::Cloud::AppEngine::V1::Instance::Liveness::LivenessState]
|
84
|
+
# Output only. The liveness health check of this instance. Only applicable for instances
|
85
|
+
# in App Engine flexible environment.
|
82
86
|
class Instance
|
83
87
|
include ::Google::Protobuf::MessageExts
|
84
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
89
|
|
90
|
+
# Wrapper for LivenessState enum.
|
91
|
+
class Liveness
|
92
|
+
include ::Google::Protobuf::MessageExts
|
93
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
94
|
+
|
95
|
+
# Liveness health check status for Flex instances.
|
96
|
+
module LivenessState
|
97
|
+
# There is no liveness health check for the instance. Only applicable for
|
98
|
+
# instances in App Engine standard environment.
|
99
|
+
LIVENESS_STATE_UNSPECIFIED = 0
|
100
|
+
|
101
|
+
# The health checking system is aware of the instance but its health is
|
102
|
+
# not known at the moment.
|
103
|
+
UNKNOWN = 1
|
104
|
+
|
105
|
+
# The instance is reachable i.e. a connection to the application health
|
106
|
+
# checking endpoint can be established, and conforms to the requirements
|
107
|
+
# defined by the health check.
|
108
|
+
HEALTHY = 2
|
109
|
+
|
110
|
+
# The instance is reachable, but does not conform to the requirements
|
111
|
+
# defined by the health check.
|
112
|
+
UNHEALTHY = 3
|
113
|
+
|
114
|
+
# The instance is being drained. The existing connections to the instance
|
115
|
+
# have time to complete, but the new ones are being refused.
|
116
|
+
DRAINING = 4
|
117
|
+
|
118
|
+
# The instance is unreachable i.e. a connection to the application health
|
119
|
+
# checking endpoint cannot be established, or the server does not respond
|
120
|
+
# within the specified timeout.
|
121
|
+
TIMEOUT = 5
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
86
125
|
# Availability of the instance.
|
87
126
|
module Availability
|
88
127
|
UNSPECIFIED = 0
|
@@ -28,6 +28,10 @@ module Google
|
|
28
28
|
# @!attribute [rw] flexible_environment_available
|
29
29
|
# @return [::Boolean]
|
30
30
|
# App Engine flexible environment is available in the given location.
|
31
|
+
# @!attribute [r] search_api_available
|
32
|
+
# @return [::Boolean]
|
33
|
+
# Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search)
|
34
|
+
# is available in the given location.
|
31
35
|
class LocationMetadata
|
32
36
|
include ::Google::Protobuf::MessageExts
|
33
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AppEngine
|
23
|
+
module V1
|
24
|
+
# A NetworkSettings resource is a container for ingress settings for a version
|
25
|
+
# or service.
|
26
|
+
# @!attribute [rw] ingress_traffic_allowed
|
27
|
+
# @return [::Google::Cloud::AppEngine::V1::NetworkSettings::IngressTrafficAllowed]
|
28
|
+
# The ingress settings for version or service.
|
29
|
+
class NetworkSettings
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
|
33
|
+
# If unspecified, INGRESS_TRAFFIC_ALLOWED_ALL will be used.
|
34
|
+
module IngressTrafficAllowed
|
35
|
+
# Unspecified
|
36
|
+
INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED = 0
|
37
|
+
|
38
|
+
# Allow HTTP traffic from public and private sources.
|
39
|
+
INGRESS_TRAFFIC_ALLOWED_ALL = 1
|
40
|
+
|
41
|
+
# Allow HTTP traffic from only private VPC sources.
|
42
|
+
INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY = 2
|
43
|
+
|
44
|
+
# Allow HTTP traffic from private VPC sources and through load balancers.
|
45
|
+
INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB = 3
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -40,6 +40,9 @@ module Google
|
|
40
40
|
# @return [::Google::Cloud::AppEngine::V1::TrafficSplit]
|
41
41
|
# Mapping that defines fractional HTTP traffic diversion to
|
42
42
|
# different versions within the service.
|
43
|
+
# @!attribute [rw] network_settings
|
44
|
+
# @return [::Google::Cloud::AppEngine::V1::NetworkSettings]
|
45
|
+
# Ingress settings for this service. Will apply to all versions.
|
43
46
|
class Service
|
44
47
|
include ::Google::Protobuf::MessageExts
|
45
48
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# @!attribute [rw] automatic_scaling
|
36
36
|
# @return [::Google::Cloud::AppEngine::V1::AutomaticScaling]
|
37
37
|
# Automatic scaling is based on request rate, response latencies, and other
|
38
|
-
# application metrics.
|
38
|
+
# application metrics. Instances are dynamically created and destroyed as
|
39
|
+
# needed in order to handle traffic.
|
39
40
|
# @!attribute [rw] basic_scaling
|
40
41
|
# @return [::Google::Cloud::AppEngine::V1::BasicScaling]
|
41
42
|
# A service with basic scaling will create an instance when the application
|
@@ -46,6 +47,7 @@ module Google
|
|
46
47
|
# @return [::Google::Cloud::AppEngine::V1::ManualScaling]
|
47
48
|
# A service with manual scaling runs continuously, allowing you to perform
|
48
49
|
# complex initialization and rely on the state of its memory over time.
|
50
|
+
# Manually scaled versions are sometimes referred to as "backends".
|
49
51
|
# @!attribute [rw] inbound_services
|
50
52
|
# @return [::Array<::Google::Cloud::AppEngine::V1::InboundServiceType>]
|
51
53
|
# Before an application can receive email or XMPP messages, the application
|
@@ -117,6 +119,11 @@ module Google
|
|
117
119
|
# @!attribute [rw] runtime_main_executable_path
|
118
120
|
# @return [::String]
|
119
121
|
# The path or name of the app's main executable.
|
122
|
+
# @!attribute [rw] service_account
|
123
|
+
# @return [::String]
|
124
|
+
# The identity that the deployed version will run as.
|
125
|
+
# Admin API will use the App Engine Appspot service account as default if
|
126
|
+
# this field is neither provided in app.yaml file nor through CLI flag.
|
120
127
|
# @!attribute [rw] handlers
|
121
128
|
# @return [::Array<::Google::Cloud::AppEngine::V1::UrlMap>]
|
122
129
|
# An ordered list of URL-matching patterns that should be applied to incoming
|
@@ -146,6 +153,11 @@ module Google
|
|
146
153
|
# Environment variables available to the application.
|
147
154
|
#
|
148
155
|
# Only returned in `GET` requests if `view=FULL` is set.
|
156
|
+
# @!attribute [rw] build_env_variables
|
157
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
158
|
+
# Environment variables available to the build environment.
|
159
|
+
#
|
160
|
+
# Only returned in `GET` requests if `view=FULL` is set.
|
149
161
|
# @!attribute [rw] default_expiration
|
150
162
|
# @return [::Google::Protobuf::Duration]
|
151
163
|
# Duration that static files should be cached by web proxies and browsers.
|
@@ -221,6 +233,15 @@ module Google
|
|
221
233
|
include ::Google::Protobuf::MessageExts
|
222
234
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
223
235
|
end
|
236
|
+
|
237
|
+
# @!attribute [rw] key
|
238
|
+
# @return [::String]
|
239
|
+
# @!attribute [rw] value
|
240
|
+
# @return [::String]
|
241
|
+
class BuildEnvVariablesEntry
|
242
|
+
include ::Google::Protobuf::MessageExts
|
243
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
|
+
end
|
224
245
|
end
|
225
246
|
|
226
247
|
# [Cloud Endpoints](https://cloud.google.com/endpoints) configuration.
|
@@ -522,6 +543,10 @@ module Google
|
|
522
543
|
# @!attribute [rw] volumes
|
523
544
|
# @return [::Array<::Google::Cloud::AppEngine::V1::Volume>]
|
524
545
|
# User specified volumes.
|
546
|
+
# @!attribute [rw] kms_key_reference
|
547
|
+
# @return [::String]
|
548
|
+
# The name of the encryption key that is stored in Google Cloud KMS.
|
549
|
+
# Only should be used by Cloud Composer to encrypt the vm disk
|
525
550
|
class Resources
|
526
551
|
include ::Google::Protobuf::MessageExts
|
527
552
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-app_engine-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,6 +219,7 @@ files:
|
|
213
219
|
- lib/google/cloud/app_engine/v1/versions/credentials.rb
|
214
220
|
- lib/google/cloud/app_engine/v1/versions/operations.rb
|
215
221
|
- proto_docs/README.md
|
222
|
+
- proto_docs/google/api/field_behavior.rb
|
216
223
|
- proto_docs/google/api/resource.rb
|
217
224
|
- proto_docs/google/appengine/v1/app_yaml.rb
|
218
225
|
- proto_docs/google/appengine/v1/appengine.rb
|
@@ -225,6 +232,7 @@ files:
|
|
225
232
|
- proto_docs/google/appengine/v1/firewall.rb
|
226
233
|
- proto_docs/google/appengine/v1/instance.rb
|
227
234
|
- proto_docs/google/appengine/v1/location.rb
|
235
|
+
- proto_docs/google/appengine/v1/network_settings.rb
|
228
236
|
- proto_docs/google/appengine/v1/operation.rb
|
229
237
|
- proto_docs/google/appengine/v1/service.rb
|
230
238
|
- proto_docs/google/appengine/v1/version.rb
|
@@ -254,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
262
|
- !ruby/object:Gem::Version
|
255
263
|
version: '0'
|
256
264
|
requirements: []
|
257
|
-
rubygems_version: 3.2.
|
265
|
+
rubygems_version: 3.2.17
|
258
266
|
signing_key:
|
259
267
|
specification_version: 4
|
260
268
|
summary: API Client library for the App Engine Admin V1 API
|