google-api-client 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -8
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -6
- data/generated/google/apis/bigquery_v2/representations.rb +1 -1
- data/generated/google/apis/bigquery_v2/service.rb +4 -5
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +5 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +32 -19
- data/generated/google/apis/cloudbuild_v1/representations.rb +5 -3
- data/generated/google/apis/cloudbuild_v1/service.rb +4 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +226 -11
- data/generated/google/apis/compute_beta/representations.rb +85 -0
- data/generated/google/apis/compute_beta/service.rb +465 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +654 -11
- data/generated/google/apis/compute_v1/representations.rb +231 -0
- data/generated/google/apis/compute_v1/service.rb +574 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +6 -0
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +30 -16
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +8 -1
- data/generated/google/apis/fitness_v1/representations.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +7 -7
- data/generated/google/apis/genomics_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +63 -4
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +2 -2
- data/generated/google/apis/monitoring_v3/classes.rb +14 -10
- data/generated/google/apis/monitoring_v3/service.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +9 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +1 -0
- data/generated/google/apis/speech_v1beta1/service.rb +2 -2
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +0 -34
- data/generated/google/apis/storage_v1/representations.rb +0 -16
- data/generated/google/apis/storage_v1/service.rb +3 -18
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
26
26
|
module ComputeV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160908'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -944,18 +944,19 @@ module Google
|
|
944
944
|
class Backend
|
945
945
|
include Google::Apis::Core::Hashable
|
946
946
|
|
947
|
-
# Specifies the balancing mode for this backend. For global HTTP(S)
|
948
|
-
# balancing, the default is UTILIZATION. Valid values are UTILIZATION
|
947
|
+
# Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL
|
948
|
+
# load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE
|
949
|
+
# (for HTTP(S)) and CONNECTION (for TCP/SSL).
|
949
950
|
# This cannot be used for internal load balancing.
|
950
951
|
# Corresponds to the JSON property `balancingMode`
|
951
952
|
# @return [String]
|
952
953
|
attr_accessor :balancing_mode
|
953
954
|
|
954
|
-
# A multiplier applied to the group's maximum servicing capacity (
|
955
|
-
# UTILIZATION or
|
956
|
-
# to 100% of its configured
|
957
|
-
# of 0 means the group is completely drained, offering 0% of its
|
958
|
-
#
|
955
|
+
# A multiplier applied to the group's maximum servicing capacity (based on
|
956
|
+
# UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group
|
957
|
+
# will serve up to 100% of its configured capacity (depending on balancingMode).
|
958
|
+
# A setting of 0 means the group is completely drained, offering 0% of its
|
959
|
+
# available Capacity. Valid range is [0.0,1.0].
|
959
960
|
# This cannot be used for internal load balancing.
|
960
961
|
# Corresponds to the JSON property `capacityScaler`
|
961
962
|
# @return [Float]
|
@@ -980,6 +981,23 @@ module Google
|
|
980
981
|
# @return [String]
|
981
982
|
attr_accessor :group
|
982
983
|
|
984
|
+
# The max number of simultaneous connections for the group. Can be used with
|
985
|
+
# either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either
|
986
|
+
# maxConnections or maxConnectionsPerInstance must be set.
|
987
|
+
# This cannot be used for internal load balancing.
|
988
|
+
# Corresponds to the JSON property `maxConnections`
|
989
|
+
# @return [Fixnum]
|
990
|
+
attr_accessor :max_connections
|
991
|
+
|
992
|
+
# The max number of simultaneous connections that a single backend instance can
|
993
|
+
# handle. This is used to calculate the capacity of the group. Can be used in
|
994
|
+
# either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either
|
995
|
+
# maxConnections or maxConnectionsPerInstance must be set.
|
996
|
+
# This cannot be used for internal load balancing.
|
997
|
+
# Corresponds to the JSON property `maxConnectionsPerInstance`
|
998
|
+
# @return [Fixnum]
|
999
|
+
attr_accessor :max_connections_per_instance
|
1000
|
+
|
983
1001
|
# The max requests per second (RPS) of the group. Can be used with either RATE
|
984
1002
|
# or UTILIZATION balancing modes, but required if RATE mode. For RATE mode,
|
985
1003
|
# either maxRate or maxRatePerInstance must be set.
|
@@ -1014,6 +1032,8 @@ module Google
|
|
1014
1032
|
@capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler)
|
1015
1033
|
@description = args[:description] if args.key?(:description)
|
1016
1034
|
@group = args[:group] if args.key?(:group)
|
1035
|
+
@max_connections = args[:max_connections] if args.key?(:max_connections)
|
1036
|
+
@max_connections_per_instance = args[:max_connections_per_instance] if args.key?(:max_connections_per_instance)
|
1017
1037
|
@max_rate = args[:max_rate] if args.key?(:max_rate)
|
1018
1038
|
@max_rate_per_instance = args[:max_rate_per_instance] if args.key?(:max_rate_per_instance)
|
1019
1039
|
@max_utilization = args[:max_utilization] if args.key?(:max_utilization)
|
@@ -1038,6 +1058,11 @@ module Google
|
|
1038
1058
|
# @return [Array<Google::Apis::ComputeV1::Backend>]
|
1039
1059
|
attr_accessor :backends
|
1040
1060
|
|
1061
|
+
# Message containing connection draining configuration.
|
1062
|
+
# Corresponds to the JSON property `connectionDraining`
|
1063
|
+
# @return [Google::Apis::ComputeV1::ConnectionDraining]
|
1064
|
+
attr_accessor :connection_draining
|
1065
|
+
|
1041
1066
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
1042
1067
|
# Corresponds to the JSON property `creationTimestamp`
|
1043
1068
|
# @return [String]
|
@@ -1153,6 +1178,7 @@ module Google
|
|
1153
1178
|
def update!(**args)
|
1154
1179
|
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
|
1155
1180
|
@backends = args[:backends] if args.key?(:backends)
|
1181
|
+
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
|
1156
1182
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
1157
1183
|
@description = args[:description] if args.key?(:description)
|
1158
1184
|
@enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
|
@@ -1260,6 +1286,26 @@ module Google
|
|
1260
1286
|
end
|
1261
1287
|
end
|
1262
1288
|
|
1289
|
+
# Message containing connection draining configuration.
|
1290
|
+
class ConnectionDraining
|
1291
|
+
include Google::Apis::Core::Hashable
|
1292
|
+
|
1293
|
+
# Time for which instance will be drained (not accept new connections, but still
|
1294
|
+
# work to finish started).
|
1295
|
+
# Corresponds to the JSON property `drainingTimeoutSec`
|
1296
|
+
# @return [Fixnum]
|
1297
|
+
attr_accessor :draining_timeout_sec
|
1298
|
+
|
1299
|
+
def initialize(**args)
|
1300
|
+
update!(**args)
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
# Update properties of this object
|
1304
|
+
def update!(**args)
|
1305
|
+
@draining_timeout_sec = args[:draining_timeout_sec] if args.key?(:draining_timeout_sec)
|
1306
|
+
end
|
1307
|
+
end
|
1308
|
+
|
1263
1309
|
# Represents a customer-supplied encryption key
|
1264
1310
|
class CustomerEncryptionKey
|
1265
1311
|
include Google::Apis::Core::Hashable
|
@@ -2543,6 +2589,319 @@ module Google
|
|
2543
2589
|
end
|
2544
2590
|
end
|
2545
2591
|
|
2592
|
+
#
|
2593
|
+
class Http2HealthCheck
|
2594
|
+
include Google::Apis::Core::Hashable
|
2595
|
+
|
2596
|
+
# The value of the host header in the HTTP/2 health check request. If left empty
|
2597
|
+
# (default value), the IP on behalf of which this health check is performed will
|
2598
|
+
# be used.
|
2599
|
+
# Corresponds to the JSON property `host`
|
2600
|
+
# @return [String]
|
2601
|
+
attr_accessor :host
|
2602
|
+
|
2603
|
+
# The TCP port number for the health check request. The default value is 443.
|
2604
|
+
# Corresponds to the JSON property `port`
|
2605
|
+
# @return [Fixnum]
|
2606
|
+
attr_accessor :port
|
2607
|
+
|
2608
|
+
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
2609
|
+
# port_name are defined, port takes precedence.
|
2610
|
+
# Corresponds to the JSON property `portName`
|
2611
|
+
# @return [String]
|
2612
|
+
attr_accessor :port_name
|
2613
|
+
|
2614
|
+
# Specifies the type of proxy header to append before sending data to the
|
2615
|
+
# backend, either NONE or PROXY_V1. The default is NONE.
|
2616
|
+
# Corresponds to the JSON property `proxyHeader`
|
2617
|
+
# @return [String]
|
2618
|
+
attr_accessor :proxy_header
|
2619
|
+
|
2620
|
+
# The request path of the HTTP/2 health check request. The default value is /.
|
2621
|
+
# Corresponds to the JSON property `requestPath`
|
2622
|
+
# @return [String]
|
2623
|
+
attr_accessor :request_path
|
2624
|
+
|
2625
|
+
def initialize(**args)
|
2626
|
+
update!(**args)
|
2627
|
+
end
|
2628
|
+
|
2629
|
+
# Update properties of this object
|
2630
|
+
def update!(**args)
|
2631
|
+
@host = args[:host] if args.key?(:host)
|
2632
|
+
@port = args[:port] if args.key?(:port)
|
2633
|
+
@port_name = args[:port_name] if args.key?(:port_name)
|
2634
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
2635
|
+
@request_path = args[:request_path] if args.key?(:request_path)
|
2636
|
+
end
|
2637
|
+
end
|
2638
|
+
|
2639
|
+
#
|
2640
|
+
class HttpHealthCheck
|
2641
|
+
include Google::Apis::Core::Hashable
|
2642
|
+
|
2643
|
+
# The value of the host header in the HTTP health check request. If left empty (
|
2644
|
+
# default value), the IP on behalf of which this health check is performed will
|
2645
|
+
# be used.
|
2646
|
+
# Corresponds to the JSON property `host`
|
2647
|
+
# @return [String]
|
2648
|
+
attr_accessor :host
|
2649
|
+
|
2650
|
+
# The TCP port number for the health check request. The default value is 80.
|
2651
|
+
# Corresponds to the JSON property `port`
|
2652
|
+
# @return [Fixnum]
|
2653
|
+
attr_accessor :port
|
2654
|
+
|
2655
|
+
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
2656
|
+
# port_name are defined, port takes precedence.
|
2657
|
+
# Corresponds to the JSON property `portName`
|
2658
|
+
# @return [String]
|
2659
|
+
attr_accessor :port_name
|
2660
|
+
|
2661
|
+
# Specifies the type of proxy header to append before sending data to the
|
2662
|
+
# backend, either NONE or PROXY_V1. The default is NONE.
|
2663
|
+
# Corresponds to the JSON property `proxyHeader`
|
2664
|
+
# @return [String]
|
2665
|
+
attr_accessor :proxy_header
|
2666
|
+
|
2667
|
+
# The request path of the HTTP health check request. The default value is /.
|
2668
|
+
# Corresponds to the JSON property `requestPath`
|
2669
|
+
# @return [String]
|
2670
|
+
attr_accessor :request_path
|
2671
|
+
|
2672
|
+
def initialize(**args)
|
2673
|
+
update!(**args)
|
2674
|
+
end
|
2675
|
+
|
2676
|
+
# Update properties of this object
|
2677
|
+
def update!(**args)
|
2678
|
+
@host = args[:host] if args.key?(:host)
|
2679
|
+
@port = args[:port] if args.key?(:port)
|
2680
|
+
@port_name = args[:port_name] if args.key?(:port_name)
|
2681
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
2682
|
+
@request_path = args[:request_path] if args.key?(:request_path)
|
2683
|
+
end
|
2684
|
+
end
|
2685
|
+
|
2686
|
+
#
|
2687
|
+
class HttpsHealthCheck
|
2688
|
+
include Google::Apis::Core::Hashable
|
2689
|
+
|
2690
|
+
# The value of the host header in the HTTPS health check request. If left empty (
|
2691
|
+
# default value), the IP on behalf of which this health check is performed will
|
2692
|
+
# be used.
|
2693
|
+
# Corresponds to the JSON property `host`
|
2694
|
+
# @return [String]
|
2695
|
+
attr_accessor :host
|
2696
|
+
|
2697
|
+
# The TCP port number for the health check request. The default value is 443.
|
2698
|
+
# Corresponds to the JSON property `port`
|
2699
|
+
# @return [Fixnum]
|
2700
|
+
attr_accessor :port
|
2701
|
+
|
2702
|
+
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
2703
|
+
# port_name are defined, port takes precedence.
|
2704
|
+
# Corresponds to the JSON property `portName`
|
2705
|
+
# @return [String]
|
2706
|
+
attr_accessor :port_name
|
2707
|
+
|
2708
|
+
# Specifies the type of proxy header to append before sending data to the
|
2709
|
+
# backend, either NONE or PROXY_V1. The default is NONE.
|
2710
|
+
# Corresponds to the JSON property `proxyHeader`
|
2711
|
+
# @return [String]
|
2712
|
+
attr_accessor :proxy_header
|
2713
|
+
|
2714
|
+
# The request path of the HTTPS health check request. The default value is /.
|
2715
|
+
# Corresponds to the JSON property `requestPath`
|
2716
|
+
# @return [String]
|
2717
|
+
attr_accessor :request_path
|
2718
|
+
|
2719
|
+
def initialize(**args)
|
2720
|
+
update!(**args)
|
2721
|
+
end
|
2722
|
+
|
2723
|
+
# Update properties of this object
|
2724
|
+
def update!(**args)
|
2725
|
+
@host = args[:host] if args.key?(:host)
|
2726
|
+
@port = args[:port] if args.key?(:port)
|
2727
|
+
@port_name = args[:port_name] if args.key?(:port_name)
|
2728
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
2729
|
+
@request_path = args[:request_path] if args.key?(:request_path)
|
2730
|
+
end
|
2731
|
+
end
|
2732
|
+
|
2733
|
+
# An HealthCheck resource. This resource defines a template for how individual
|
2734
|
+
# virtual machines should be checked for health, via one of the supported
|
2735
|
+
# protocols.
|
2736
|
+
class HealthCheck
|
2737
|
+
include Google::Apis::Core::Hashable
|
2738
|
+
|
2739
|
+
# How often (in seconds) to send a health check. The default value is 5 seconds.
|
2740
|
+
# Corresponds to the JSON property `checkIntervalSec`
|
2741
|
+
# @return [Fixnum]
|
2742
|
+
attr_accessor :check_interval_sec
|
2743
|
+
|
2744
|
+
# [Output Only] Creation timestamp in 3339 text format.
|
2745
|
+
# Corresponds to the JSON property `creationTimestamp`
|
2746
|
+
# @return [String]
|
2747
|
+
attr_accessor :creation_timestamp
|
2748
|
+
|
2749
|
+
# An optional description of this resource. Provide this property when you
|
2750
|
+
# create the resource.
|
2751
|
+
# Corresponds to the JSON property `description`
|
2752
|
+
# @return [String]
|
2753
|
+
attr_accessor :description
|
2754
|
+
|
2755
|
+
# A so-far unhealthy instance will be marked healthy after this many consecutive
|
2756
|
+
# successes. The default value is 2.
|
2757
|
+
# Corresponds to the JSON property `healthyThreshold`
|
2758
|
+
# @return [Fixnum]
|
2759
|
+
attr_accessor :healthy_threshold
|
2760
|
+
|
2761
|
+
#
|
2762
|
+
# Corresponds to the JSON property `http2HealthCheck`
|
2763
|
+
# @return [Google::Apis::ComputeV1::Http2HealthCheck]
|
2764
|
+
attr_accessor :http2_health_check
|
2765
|
+
|
2766
|
+
#
|
2767
|
+
# Corresponds to the JSON property `httpHealthCheck`
|
2768
|
+
# @return [Google::Apis::ComputeV1::HttpHealthCheck]
|
2769
|
+
attr_accessor :http_health_check
|
2770
|
+
|
2771
|
+
#
|
2772
|
+
# Corresponds to the JSON property `httpsHealthCheck`
|
2773
|
+
# @return [Google::Apis::ComputeV1::HttpsHealthCheck]
|
2774
|
+
attr_accessor :https_health_check
|
2775
|
+
|
2776
|
+
# [Output Only] The unique identifier for the resource. This identifier is
|
2777
|
+
# defined by the server.
|
2778
|
+
# Corresponds to the JSON property `id`
|
2779
|
+
# @return [String]
|
2780
|
+
attr_accessor :id
|
2781
|
+
|
2782
|
+
# Type of the resource.
|
2783
|
+
# Corresponds to the JSON property `kind`
|
2784
|
+
# @return [String]
|
2785
|
+
attr_accessor :kind
|
2786
|
+
|
2787
|
+
# Name of the resource. Provided by the client when the resource is created. The
|
2788
|
+
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
2789
|
+
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
|
2790
|
+
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
|
2791
|
+
# and all following characters must be a dash, lowercase letter, or digit,
|
2792
|
+
# except the last character, which cannot be a dash.
|
2793
|
+
# Corresponds to the JSON property `name`
|
2794
|
+
# @return [String]
|
2795
|
+
attr_accessor :name
|
2796
|
+
|
2797
|
+
# [Output Only] Server-defined URL for the resource.
|
2798
|
+
# Corresponds to the JSON property `selfLink`
|
2799
|
+
# @return [String]
|
2800
|
+
attr_accessor :self_link
|
2801
|
+
|
2802
|
+
#
|
2803
|
+
# Corresponds to the JSON property `sslHealthCheck`
|
2804
|
+
# @return [Google::Apis::ComputeV1::SslHealthCheck]
|
2805
|
+
attr_accessor :ssl_health_check
|
2806
|
+
|
2807
|
+
#
|
2808
|
+
# Corresponds to the JSON property `tcpHealthCheck`
|
2809
|
+
# @return [Google::Apis::ComputeV1::TcpHealthCheck]
|
2810
|
+
attr_accessor :tcp_health_check
|
2811
|
+
|
2812
|
+
# How long (in seconds) to wait before claiming failure. The default value is 5
|
2813
|
+
# seconds. It is invalid for timeoutSec to have greater value than
|
2814
|
+
# checkIntervalSec.
|
2815
|
+
# Corresponds to the JSON property `timeoutSec`
|
2816
|
+
# @return [Fixnum]
|
2817
|
+
attr_accessor :timeout_sec
|
2818
|
+
|
2819
|
+
# Specifies the type of the healthCheck, either TCP, UDP, SSL, HTTP, HTTPS or
|
2820
|
+
# HTTP2. If not specified, the default is TCP. Exactly one of the protocol-
|
2821
|
+
# specific health check field must be specified, which must match type field.
|
2822
|
+
# Corresponds to the JSON property `type`
|
2823
|
+
# @return [String]
|
2824
|
+
attr_accessor :type
|
2825
|
+
|
2826
|
+
# A so-far healthy instance will be marked unhealthy after this many consecutive
|
2827
|
+
# failures. The default value is 2.
|
2828
|
+
# Corresponds to the JSON property `unhealthyThreshold`
|
2829
|
+
# @return [Fixnum]
|
2830
|
+
attr_accessor :unhealthy_threshold
|
2831
|
+
|
2832
|
+
def initialize(**args)
|
2833
|
+
update!(**args)
|
2834
|
+
end
|
2835
|
+
|
2836
|
+
# Update properties of this object
|
2837
|
+
def update!(**args)
|
2838
|
+
@check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
|
2839
|
+
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
2840
|
+
@description = args[:description] if args.key?(:description)
|
2841
|
+
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
|
2842
|
+
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
|
2843
|
+
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
|
2844
|
+
@https_health_check = args[:https_health_check] if args.key?(:https_health_check)
|
2845
|
+
@id = args[:id] if args.key?(:id)
|
2846
|
+
@kind = args[:kind] if args.key?(:kind)
|
2847
|
+
@name = args[:name] if args.key?(:name)
|
2848
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
2849
|
+
@ssl_health_check = args[:ssl_health_check] if args.key?(:ssl_health_check)
|
2850
|
+
@tcp_health_check = args[:tcp_health_check] if args.key?(:tcp_health_check)
|
2851
|
+
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
|
2852
|
+
@type = args[:type] if args.key?(:type)
|
2853
|
+
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
|
2854
|
+
end
|
2855
|
+
end
|
2856
|
+
|
2857
|
+
# Contains a list of HealthCheck resources.
|
2858
|
+
class HealthCheckList
|
2859
|
+
include Google::Apis::Core::Hashable
|
2860
|
+
|
2861
|
+
# [Output Only] The unique identifier for the resource. This identifier is
|
2862
|
+
# defined by the server.
|
2863
|
+
# Corresponds to the JSON property `id`
|
2864
|
+
# @return [String]
|
2865
|
+
attr_accessor :id
|
2866
|
+
|
2867
|
+
# A list of HealthCheck resources.
|
2868
|
+
# Corresponds to the JSON property `items`
|
2869
|
+
# @return [Array<Google::Apis::ComputeV1::HealthCheck>]
|
2870
|
+
attr_accessor :items
|
2871
|
+
|
2872
|
+
# Type of resource.
|
2873
|
+
# Corresponds to the JSON property `kind`
|
2874
|
+
# @return [String]
|
2875
|
+
attr_accessor :kind
|
2876
|
+
|
2877
|
+
# [Output Only] This token allows you to get the next page of results for list
|
2878
|
+
# requests. If the number of results is larger than maxResults, use the
|
2879
|
+
# nextPageToken as a value for the query parameter pageToken in the next list
|
2880
|
+
# request. Subsequent list requests will have their own nextPageToken to
|
2881
|
+
# continue paging through the results.
|
2882
|
+
# Corresponds to the JSON property `nextPageToken`
|
2883
|
+
# @return [String]
|
2884
|
+
attr_accessor :next_page_token
|
2885
|
+
|
2886
|
+
# [Output Only] Server-defined URL for this resource.
|
2887
|
+
# Corresponds to the JSON property `selfLink`
|
2888
|
+
# @return [String]
|
2889
|
+
attr_accessor :self_link
|
2890
|
+
|
2891
|
+
def initialize(**args)
|
2892
|
+
update!(**args)
|
2893
|
+
end
|
2894
|
+
|
2895
|
+
# Update properties of this object
|
2896
|
+
def update!(**args)
|
2897
|
+
@id = args[:id] if args.key?(:id)
|
2898
|
+
@items = args[:items] if args.key?(:items)
|
2899
|
+
@kind = args[:kind] if args.key?(:kind)
|
2900
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2901
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
2902
|
+
end
|
2903
|
+
end
|
2904
|
+
|
2546
2905
|
# A full or valid partial URL to a health check. For example, the following are
|
2547
2906
|
# valid URLs:
|
2548
2907
|
# - https://www.googleapis.com/compute/beta/projects/project-id/global/
|
@@ -2955,7 +3314,7 @@ module Google
|
|
2955
3314
|
# @return [String]
|
2956
3315
|
attr_accessor :archive_size_bytes
|
2957
3316
|
|
2958
|
-
#
|
3317
|
+
# Creation timestamp in RFC3339 text format.
|
2959
3318
|
# Corresponds to the JSON property `creationTimestamp`
|
2960
3319
|
# @return [String]
|
2961
3320
|
attr_accessor :creation_timestamp
|
@@ -3275,7 +3634,7 @@ module Google
|
|
3275
3634
|
attr_accessor :service_accounts
|
3276
3635
|
|
3277
3636
|
# [Output Only] The status of the instance. One of the following values:
|
3278
|
-
# PROVISIONING, STAGING, RUNNING, STOPPING,
|
3637
|
+
# PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and
|
3279
3638
|
# TERMINATED.
|
3280
3639
|
# Corresponds to the JSON property `status`
|
3281
3640
|
# @return [String]
|
@@ -3395,8 +3754,8 @@ module Google
|
|
3395
3754
|
# @return [String]
|
3396
3755
|
attr_accessor :fingerprint
|
3397
3756
|
|
3398
|
-
# [Output Only] A unique identifier for this
|
3399
|
-
# this identifier.
|
3757
|
+
# [Output Only] A unique identifier for this instance group. The server
|
3758
|
+
# generates this identifier.
|
3400
3759
|
# Corresponds to the JSON property `id`
|
3401
3760
|
# @return [String]
|
3402
3761
|
attr_accessor :id
|
@@ -7164,6 +7523,56 @@ module Google
|
|
7164
7523
|
end
|
7165
7524
|
end
|
7166
7525
|
|
7526
|
+
#
|
7527
|
+
class SslHealthCheck
|
7528
|
+
include Google::Apis::Core::Hashable
|
7529
|
+
|
7530
|
+
# The TCP port number for the health check request. The default value is 443.
|
7531
|
+
# Corresponds to the JSON property `port`
|
7532
|
+
# @return [Fixnum]
|
7533
|
+
attr_accessor :port
|
7534
|
+
|
7535
|
+
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
7536
|
+
# port_name are defined, port takes precedence.
|
7537
|
+
# Corresponds to the JSON property `portName`
|
7538
|
+
# @return [String]
|
7539
|
+
attr_accessor :port_name
|
7540
|
+
|
7541
|
+
# Specifies the type of proxy header to append before sending data to the
|
7542
|
+
# backend, either NONE or PROXY_V1. The default is NONE.
|
7543
|
+
# Corresponds to the JSON property `proxyHeader`
|
7544
|
+
# @return [String]
|
7545
|
+
attr_accessor :proxy_header
|
7546
|
+
|
7547
|
+
# The application data to send once the SSL connection has been established (
|
7548
|
+
# default value is empty). If both request and response are empty, the
|
7549
|
+
# connection establishment alone will indicate health. The request data can only
|
7550
|
+
# be ASCII.
|
7551
|
+
# Corresponds to the JSON property `request`
|
7552
|
+
# @return [String]
|
7553
|
+
attr_accessor :request
|
7554
|
+
|
7555
|
+
# The bytes to match against the beginning of the response data. If left empty (
|
7556
|
+
# the default value), any response will indicate health. The response data can
|
7557
|
+
# only be ASCII.
|
7558
|
+
# Corresponds to the JSON property `response`
|
7559
|
+
# @return [String]
|
7560
|
+
attr_accessor :response
|
7561
|
+
|
7562
|
+
def initialize(**args)
|
7563
|
+
update!(**args)
|
7564
|
+
end
|
7565
|
+
|
7566
|
+
# Update properties of this object
|
7567
|
+
def update!(**args)
|
7568
|
+
@port = args[:port] if args.key?(:port)
|
7569
|
+
@port_name = args[:port_name] if args.key?(:port_name)
|
7570
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
7571
|
+
@request = args[:request] if args.key?(:request)
|
7572
|
+
@response = args[:response] if args.key?(:response)
|
7573
|
+
end
|
7574
|
+
end
|
7575
|
+
|
7167
7576
|
# Sets the scheduling options for an Instance.
|
7168
7577
|
class Scheduling
|
7169
7578
|
include Google::Apis::Core::Hashable
|
@@ -7823,6 +8232,56 @@ module Google
|
|
7823
8232
|
end
|
7824
8233
|
end
|
7825
8234
|
|
8235
|
+
#
|
8236
|
+
class TcpHealthCheck
|
8237
|
+
include Google::Apis::Core::Hashable
|
8238
|
+
|
8239
|
+
# The TCP port number for the health check request. The default value is 80.
|
8240
|
+
# Corresponds to the JSON property `port`
|
8241
|
+
# @return [Fixnum]
|
8242
|
+
attr_accessor :port
|
8243
|
+
|
8244
|
+
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
|
8245
|
+
# port_name are defined, port takes precedence.
|
8246
|
+
# Corresponds to the JSON property `portName`
|
8247
|
+
# @return [String]
|
8248
|
+
attr_accessor :port_name
|
8249
|
+
|
8250
|
+
# Specifies the type of proxy header to append before sending data to the
|
8251
|
+
# backend, either NONE or PROXY_V1. The default is NONE.
|
8252
|
+
# Corresponds to the JSON property `proxyHeader`
|
8253
|
+
# @return [String]
|
8254
|
+
attr_accessor :proxy_header
|
8255
|
+
|
8256
|
+
# The application data to send once the TCP connection has been established (
|
8257
|
+
# default value is empty). If both request and response are empty, the
|
8258
|
+
# connection establishment alone will indicate health. The request data can only
|
8259
|
+
# be ASCII.
|
8260
|
+
# Corresponds to the JSON property `request`
|
8261
|
+
# @return [String]
|
8262
|
+
attr_accessor :request
|
8263
|
+
|
8264
|
+
# The bytes to match against the beginning of the response data. If left empty (
|
8265
|
+
# the default value), any response will indicate health. The response data can
|
8266
|
+
# only be ASCII.
|
8267
|
+
# Corresponds to the JSON property `response`
|
8268
|
+
# @return [String]
|
8269
|
+
attr_accessor :response
|
8270
|
+
|
8271
|
+
def initialize(**args)
|
8272
|
+
update!(**args)
|
8273
|
+
end
|
8274
|
+
|
8275
|
+
# Update properties of this object
|
8276
|
+
def update!(**args)
|
8277
|
+
@port = args[:port] if args.key?(:port)
|
8278
|
+
@port_name = args[:port_name] if args.key?(:port_name)
|
8279
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
8280
|
+
@request = args[:request] if args.key?(:request)
|
8281
|
+
@response = args[:response] if args.key?(:response)
|
8282
|
+
end
|
8283
|
+
end
|
8284
|
+
|
7826
8285
|
# A set of instance tags.
|
7827
8286
|
class Tags
|
7828
8287
|
include Google::Apis::Core::Hashable
|
@@ -8822,6 +9281,190 @@ module Google
|
|
8822
9281
|
end
|
8823
9282
|
end
|
8824
9283
|
|
9284
|
+
#
|
9285
|
+
class TargetSslProxiesSetBackendServiceRequest
|
9286
|
+
include Google::Apis::Core::Hashable
|
9287
|
+
|
9288
|
+
# The URL of the new BackendService resource for the targetSslProxy.
|
9289
|
+
# Corresponds to the JSON property `service`
|
9290
|
+
# @return [String]
|
9291
|
+
attr_accessor :service
|
9292
|
+
|
9293
|
+
def initialize(**args)
|
9294
|
+
update!(**args)
|
9295
|
+
end
|
9296
|
+
|
9297
|
+
# Update properties of this object
|
9298
|
+
def update!(**args)
|
9299
|
+
@service = args[:service] if args.key?(:service)
|
9300
|
+
end
|
9301
|
+
end
|
9302
|
+
|
9303
|
+
#
|
9304
|
+
class TargetSslProxiesSetProxyHeaderRequest
|
9305
|
+
include Google::Apis::Core::Hashable
|
9306
|
+
|
9307
|
+
# The new type of proxy header to append before sending data to the backend.
|
9308
|
+
# NONE or PROXY_V1 are allowed.
|
9309
|
+
# Corresponds to the JSON property `proxyHeader`
|
9310
|
+
# @return [String]
|
9311
|
+
attr_accessor :proxy_header
|
9312
|
+
|
9313
|
+
def initialize(**args)
|
9314
|
+
update!(**args)
|
9315
|
+
end
|
9316
|
+
|
9317
|
+
# Update properties of this object
|
9318
|
+
def update!(**args)
|
9319
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
9320
|
+
end
|
9321
|
+
end
|
9322
|
+
|
9323
|
+
#
|
9324
|
+
class TargetSslProxiesSetSslCertificatesRequest
|
9325
|
+
include Google::Apis::Core::Hashable
|
9326
|
+
|
9327
|
+
# New set of URLs to SslCertificate resources to associate with this
|
9328
|
+
# TargetSslProxy. Currently exactly one ssl certificate must be specified.
|
9329
|
+
# Corresponds to the JSON property `sslCertificates`
|
9330
|
+
# @return [Array<String>]
|
9331
|
+
attr_accessor :ssl_certificates
|
9332
|
+
|
9333
|
+
def initialize(**args)
|
9334
|
+
update!(**args)
|
9335
|
+
end
|
9336
|
+
|
9337
|
+
# Update properties of this object
|
9338
|
+
def update!(**args)
|
9339
|
+
@ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
|
9340
|
+
end
|
9341
|
+
end
|
9342
|
+
|
9343
|
+
# A TargetSslProxy resource. This resource defines an SSL proxy.
|
9344
|
+
class TargetSslProxy
|
9345
|
+
include Google::Apis::Core::Hashable
|
9346
|
+
|
9347
|
+
# [Output Only] Creation timestamp in RFC3339 text format.
|
9348
|
+
# Corresponds to the JSON property `creationTimestamp`
|
9349
|
+
# @return [String]
|
9350
|
+
attr_accessor :creation_timestamp
|
9351
|
+
|
9352
|
+
# An optional description of this resource. Provide this property when you
|
9353
|
+
# create the resource.
|
9354
|
+
# Corresponds to the JSON property `description`
|
9355
|
+
# @return [String]
|
9356
|
+
attr_accessor :description
|
9357
|
+
|
9358
|
+
# [Output Only] The unique identifier for the resource. This identifier is
|
9359
|
+
# defined by the server.
|
9360
|
+
# Corresponds to the JSON property `id`
|
9361
|
+
# @return [String]
|
9362
|
+
attr_accessor :id
|
9363
|
+
|
9364
|
+
# [Output Only] Type of the resource. Always compute#targetSslProxy for target
|
9365
|
+
# SSL proxies.
|
9366
|
+
# Corresponds to the JSON property `kind`
|
9367
|
+
# @return [String]
|
9368
|
+
attr_accessor :kind
|
9369
|
+
|
9370
|
+
# Name of the resource. Provided by the client when the resource is created. The
|
9371
|
+
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
9372
|
+
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
|
9373
|
+
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
|
9374
|
+
# and all following characters must be a dash, lowercase letter, or digit,
|
9375
|
+
# except the last character, which cannot be a dash.
|
9376
|
+
# Corresponds to the JSON property `name`
|
9377
|
+
# @return [String]
|
9378
|
+
attr_accessor :name
|
9379
|
+
|
9380
|
+
# Specifies the type of proxy header to append before sending data to the
|
9381
|
+
# backend, either NONE or PROXY_V1. The default is NONE.
|
9382
|
+
# Corresponds to the JSON property `proxyHeader`
|
9383
|
+
# @return [String]
|
9384
|
+
attr_accessor :proxy_header
|
9385
|
+
|
9386
|
+
# [Output Only] Server-defined URL for the resource.
|
9387
|
+
# Corresponds to the JSON property `selfLink`
|
9388
|
+
# @return [String]
|
9389
|
+
attr_accessor :self_link
|
9390
|
+
|
9391
|
+
# URL to the BackendService resource.
|
9392
|
+
# Corresponds to the JSON property `service`
|
9393
|
+
# @return [String]
|
9394
|
+
attr_accessor :service
|
9395
|
+
|
9396
|
+
# URLs to SslCertificate resources that are used to authenticate connections to
|
9397
|
+
# Backends. Currently exactly one SSL certificate must be specified.
|
9398
|
+
# Corresponds to the JSON property `sslCertificates`
|
9399
|
+
# @return [Array<String>]
|
9400
|
+
attr_accessor :ssl_certificates
|
9401
|
+
|
9402
|
+
def initialize(**args)
|
9403
|
+
update!(**args)
|
9404
|
+
end
|
9405
|
+
|
9406
|
+
# Update properties of this object
|
9407
|
+
def update!(**args)
|
9408
|
+
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
9409
|
+
@description = args[:description] if args.key?(:description)
|
9410
|
+
@id = args[:id] if args.key?(:id)
|
9411
|
+
@kind = args[:kind] if args.key?(:kind)
|
9412
|
+
@name = args[:name] if args.key?(:name)
|
9413
|
+
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
|
9414
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
9415
|
+
@service = args[:service] if args.key?(:service)
|
9416
|
+
@ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates)
|
9417
|
+
end
|
9418
|
+
end
|
9419
|
+
|
9420
|
+
# Contains a list of TargetSslProxy resources.
|
9421
|
+
class TargetSslProxyList
|
9422
|
+
include Google::Apis::Core::Hashable
|
9423
|
+
|
9424
|
+
# [Output Only] The unique identifier for the resource. This identifier is
|
9425
|
+
# defined by the server.
|
9426
|
+
# Corresponds to the JSON property `id`
|
9427
|
+
# @return [String]
|
9428
|
+
attr_accessor :id
|
9429
|
+
|
9430
|
+
# A list of TargetSslProxy resources.
|
9431
|
+
# Corresponds to the JSON property `items`
|
9432
|
+
# @return [Array<Google::Apis::ComputeV1::TargetSslProxy>]
|
9433
|
+
attr_accessor :items
|
9434
|
+
|
9435
|
+
# Type of resource.
|
9436
|
+
# Corresponds to the JSON property `kind`
|
9437
|
+
# @return [String]
|
9438
|
+
attr_accessor :kind
|
9439
|
+
|
9440
|
+
# [Output Only] This token allows you to get the next page of results for list
|
9441
|
+
# requests. If the number of results is larger than maxResults, use the
|
9442
|
+
# nextPageToken as a value for the query parameter pageToken in the next list
|
9443
|
+
# request. Subsequent list requests will have their own nextPageToken to
|
9444
|
+
# continue paging through the results.
|
9445
|
+
# Corresponds to the JSON property `nextPageToken`
|
9446
|
+
# @return [String]
|
9447
|
+
attr_accessor :next_page_token
|
9448
|
+
|
9449
|
+
# [Output Only] Server-defined URL for this resource.
|
9450
|
+
# Corresponds to the JSON property `selfLink`
|
9451
|
+
# @return [String]
|
9452
|
+
attr_accessor :self_link
|
9453
|
+
|
9454
|
+
def initialize(**args)
|
9455
|
+
update!(**args)
|
9456
|
+
end
|
9457
|
+
|
9458
|
+
# Update properties of this object
|
9459
|
+
def update!(**args)
|
9460
|
+
@id = args[:id] if args.key?(:id)
|
9461
|
+
@items = args[:items] if args.key?(:items)
|
9462
|
+
@kind = args[:kind] if args.key?(:kind)
|
9463
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9464
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
9465
|
+
end
|
9466
|
+
end
|
9467
|
+
|
8825
9468
|
# Represents a Target VPN gateway resource.
|
8826
9469
|
class TargetVpnGateway
|
8827
9470
|
include Google::Apis::Core::Hashable
|