google-api-client 0.35.0 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +5 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +75 -41
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +75 -41
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +75 -41
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +203 -78
- data/generated/google/apis/container_v1/representations.rb +49 -0
- data/generated/google/apis/container_v1/service.rb +119 -119
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +32 -0
- data/generated/google/apis/container_v1beta1/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +44 -7
- data/generated/google/apis/dataproc_v1/representations.rb +17 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -7
- data/generated/google/apis/dataproc_v1beta2/service.rb +12 -12
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -4
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +15 -0
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +20 -23
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +75 -41
- data/generated/google/apis/monitoring_v1.rb +13 -1
- data/generated/google/apis/monitoring_v1/classes.rb +893 -0
- data/generated/google/apis/monitoring_v1/representations.rb +405 -0
- data/generated/google/apis/monitoring_v1/service.rb +182 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +29 -41
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +168 -92
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +56 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +31 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +56 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +31 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +56 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +31 -0
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +75 -41
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +75 -41
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +75 -41
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +75 -41
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +75 -41
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +75 -41
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +29 -41
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +104 -82
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +51 -41
- data/generated/google/apis/servicenetworking_v1/representations.rb +13 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +29 -41
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +29 -41
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +29 -41
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -7
- data/generated/google/apis/cloudbuild_v1alpha1.rb +0 -34
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +0 -1174
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +0 -435
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -226
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
27
27
|
module ServicenetworkingV1beta
|
28
28
|
VERSION = 'V1beta'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20191203'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1867,42 +1867,19 @@ module Google
|
|
1867
1867
|
# @return [String]
|
1868
1868
|
attr_accessor :type
|
1869
1869
|
|
1870
|
-
#
|
1871
|
-
#
|
1872
|
-
#
|
1873
|
-
#
|
1874
|
-
#
|
1875
|
-
# * `bit` bit
|
1876
|
-
# * `By` byte
|
1877
|
-
# * `s` second
|
1878
|
-
# * `min` minute
|
1879
|
-
# * `h` hour
|
1880
|
-
# * `d` day
|
1881
|
-
# **Prefixes (PREFIX)**
|
1882
|
-
# * `k` kilo (10**3)
|
1883
|
-
# * `M` mega (10**6)
|
1884
|
-
# * `G` giga (10**9)
|
1885
|
-
# * `T` tera (10**12)
|
1886
|
-
# * `P` peta (10**15)
|
1887
|
-
# * `E` exa (10**18)
|
1888
|
-
# * `Z` zetta (10**21)
|
1889
|
-
# * `Y` yotta (10**24)
|
1890
|
-
# * `m` milli (10**-3)
|
1891
|
-
# * `u` micro (10**-6)
|
1892
|
-
# * `n` nano (10**-9)
|
1893
|
-
# * `p` pico (10**-12)
|
1894
|
-
# * `f` femto (10**-15)
|
1895
|
-
# * `a` atto (10**-18)
|
1896
|
-
# * `z` zepto (10**-21)
|
1897
|
-
# * `y` yocto (10**-24)
|
1898
|
-
# * `Ki` kibi (2**10)
|
1899
|
-
# * `Mi` mebi (2**20)
|
1900
|
-
# * `Gi` gibi (2**30)
|
1901
|
-
# * `Ti` tebi (2**40)
|
1870
|
+
# * `Ki` kibi (2^10)
|
1871
|
+
# * `Mi` mebi (2^20)
|
1872
|
+
# * `Gi` gibi (2^30)
|
1873
|
+
# * `Ti` tebi (2^40)
|
1874
|
+
# * `Pi` pebi (2^50)
|
1902
1875
|
# **Grammar**
|
1903
1876
|
# The grammar also includes these connectors:
|
1904
|
-
# * `/` division (as an infix operator
|
1905
|
-
#
|
1877
|
+
# * `/` division or ratio (as an infix operator). For examples,
|
1878
|
+
# `kBy/`email`` or `MiBy/10ms` (although you should almost never
|
1879
|
+
# have `/s` in a metric `unit`; rates should always be computed at
|
1880
|
+
# query time from the underlying cumulative or delta value).
|
1881
|
+
# * `.` multiplication or composition (as an infix operator). For
|
1882
|
+
# examples, `GBy.d` or `k`watt`.h`.
|
1906
1883
|
# The grammar for a unit is as follows:
|
1907
1884
|
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
1908
1885
|
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
@@ -1911,14 +1888,25 @@ module Google
|
|
1911
1888
|
# ;
|
1912
1889
|
# Annotation = "`" NAME "`" ;
|
1913
1890
|
# Notes:
|
1914
|
-
# * `Annotation` is just a comment if it follows a `UNIT
|
1915
|
-
#
|
1916
|
-
# ``
|
1891
|
+
# * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
1892
|
+
# is used alone, then the unit is equivalent to `1`. For examples,
|
1893
|
+
# ``request`/s == 1/s`, `By`transmitted`/s == By/s`.
|
1917
1894
|
# * `NAME` is a sequence of non-blank printable ASCII characters not
|
1918
|
-
# containing
|
1919
|
-
# * `1` represents
|
1920
|
-
#
|
1921
|
-
#
|
1895
|
+
# containing ``` or ```.
|
1896
|
+
# * `1` represents a unitary [dimensionless
|
1897
|
+
# unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
1898
|
+
# as in `1/s`. It is typically used when none of the basic units are
|
1899
|
+
# appropriate. For example, "new users per day" can be represented as
|
1900
|
+
# `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new
|
1901
|
+
# users). Alternatively, "thousands of page views per day" would be
|
1902
|
+
# represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric
|
1903
|
+
# value of `5.3` would mean "5300 page views per day").
|
1904
|
+
# * `%` represents dimensionless value of 1/100, and annotates values giving
|
1905
|
+
# a percentage (so the metric values are typically in the range of 0..100,
|
1906
|
+
# and a metric value `3` means "3 percent").
|
1907
|
+
# * `10^2.%` indicates a metric contains a ratio, typically in the range
|
1908
|
+
# 0..1, that will be multiplied by 100 and displayed as a percentage
|
1909
|
+
# (so a metric value `0.03` means "3 percent").
|
1922
1910
|
# Corresponds to the JSON property `unit`
|
1923
1911
|
# @return [String]
|
1924
1912
|
attr_accessor :unit
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/service-usage/
|
28
28
|
module ServiceusageV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20191203'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -2701,42 +2701,19 @@ module Google
|
|
2701
2701
|
# @return [String]
|
2702
2702
|
attr_accessor :type
|
2703
2703
|
|
2704
|
-
#
|
2705
|
-
#
|
2706
|
-
#
|
2707
|
-
#
|
2708
|
-
#
|
2709
|
-
# * `bit` bit
|
2710
|
-
# * `By` byte
|
2711
|
-
# * `s` second
|
2712
|
-
# * `min` minute
|
2713
|
-
# * `h` hour
|
2714
|
-
# * `d` day
|
2715
|
-
# **Prefixes (PREFIX)**
|
2716
|
-
# * `k` kilo (10**3)
|
2717
|
-
# * `M` mega (10**6)
|
2718
|
-
# * `G` giga (10**9)
|
2719
|
-
# * `T` tera (10**12)
|
2720
|
-
# * `P` peta (10**15)
|
2721
|
-
# * `E` exa (10**18)
|
2722
|
-
# * `Z` zetta (10**21)
|
2723
|
-
# * `Y` yotta (10**24)
|
2724
|
-
# * `m` milli (10**-3)
|
2725
|
-
# * `u` micro (10**-6)
|
2726
|
-
# * `n` nano (10**-9)
|
2727
|
-
# * `p` pico (10**-12)
|
2728
|
-
# * `f` femto (10**-15)
|
2729
|
-
# * `a` atto (10**-18)
|
2730
|
-
# * `z` zepto (10**-21)
|
2731
|
-
# * `y` yocto (10**-24)
|
2732
|
-
# * `Ki` kibi (2**10)
|
2733
|
-
# * `Mi` mebi (2**20)
|
2734
|
-
# * `Gi` gibi (2**30)
|
2735
|
-
# * `Ti` tebi (2**40)
|
2704
|
+
# * `Ki` kibi (2^10)
|
2705
|
+
# * `Mi` mebi (2^20)
|
2706
|
+
# * `Gi` gibi (2^30)
|
2707
|
+
# * `Ti` tebi (2^40)
|
2708
|
+
# * `Pi` pebi (2^50)
|
2736
2709
|
# **Grammar**
|
2737
2710
|
# The grammar also includes these connectors:
|
2738
|
-
# * `/` division (as an infix operator
|
2739
|
-
#
|
2711
|
+
# * `/` division or ratio (as an infix operator). For examples,
|
2712
|
+
# `kBy/`email`` or `MiBy/10ms` (although you should almost never
|
2713
|
+
# have `/s` in a metric `unit`; rates should always be computed at
|
2714
|
+
# query time from the underlying cumulative or delta value).
|
2715
|
+
# * `.` multiplication or composition (as an infix operator). For
|
2716
|
+
# examples, `GBy.d` or `k`watt`.h`.
|
2740
2717
|
# The grammar for a unit is as follows:
|
2741
2718
|
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
2742
2719
|
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
@@ -2745,14 +2722,25 @@ module Google
|
|
2745
2722
|
# ;
|
2746
2723
|
# Annotation = "`" NAME "`" ;
|
2747
2724
|
# Notes:
|
2748
|
-
# * `Annotation` is just a comment if it follows a `UNIT
|
2749
|
-
#
|
2750
|
-
# ``
|
2725
|
+
# * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
2726
|
+
# is used alone, then the unit is equivalent to `1`. For examples,
|
2727
|
+
# ``request`/s == 1/s`, `By`transmitted`/s == By/s`.
|
2751
2728
|
# * `NAME` is a sequence of non-blank printable ASCII characters not
|
2752
|
-
# containing
|
2753
|
-
# * `1` represents
|
2754
|
-
#
|
2755
|
-
#
|
2729
|
+
# containing ``` or ```.
|
2730
|
+
# * `1` represents a unitary [dimensionless
|
2731
|
+
# unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
2732
|
+
# as in `1/s`. It is typically used when none of the basic units are
|
2733
|
+
# appropriate. For example, "new users per day" can be represented as
|
2734
|
+
# `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new
|
2735
|
+
# users). Alternatively, "thousands of page views per day" would be
|
2736
|
+
# represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric
|
2737
|
+
# value of `5.3` would mean "5300 page views per day").
|
2738
|
+
# * `%` represents dimensionless value of 1/100, and annotates values giving
|
2739
|
+
# a percentage (so the metric values are typically in the range of 0..100,
|
2740
|
+
# and a metric value `3` means "3 percent").
|
2741
|
+
# * `10^2.%` indicates a metric contains a ratio, typically in the range
|
2742
|
+
# 0..1, that will be multiplied by 100 and displayed as a percentage
|
2743
|
+
# (so a metric value `0.03` means "3 percent").
|
2756
2744
|
# Corresponds to the JSON property `unit`
|
2757
2745
|
# @return [String]
|
2758
2746
|
attr_accessor :unit
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/service-usage/
|
28
28
|
module ServiceusageV1beta1
|
29
29
|
VERSION = 'V1beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20191203'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -2679,42 +2679,19 @@ module Google
|
|
2679
2679
|
# @return [String]
|
2680
2680
|
attr_accessor :type
|
2681
2681
|
|
2682
|
-
#
|
2683
|
-
#
|
2684
|
-
#
|
2685
|
-
#
|
2686
|
-
#
|
2687
|
-
# * `bit` bit
|
2688
|
-
# * `By` byte
|
2689
|
-
# * `s` second
|
2690
|
-
# * `min` minute
|
2691
|
-
# * `h` hour
|
2692
|
-
# * `d` day
|
2693
|
-
# **Prefixes (PREFIX)**
|
2694
|
-
# * `k` kilo (10**3)
|
2695
|
-
# * `M` mega (10**6)
|
2696
|
-
# * `G` giga (10**9)
|
2697
|
-
# * `T` tera (10**12)
|
2698
|
-
# * `P` peta (10**15)
|
2699
|
-
# * `E` exa (10**18)
|
2700
|
-
# * `Z` zetta (10**21)
|
2701
|
-
# * `Y` yotta (10**24)
|
2702
|
-
# * `m` milli (10**-3)
|
2703
|
-
# * `u` micro (10**-6)
|
2704
|
-
# * `n` nano (10**-9)
|
2705
|
-
# * `p` pico (10**-12)
|
2706
|
-
# * `f` femto (10**-15)
|
2707
|
-
# * `a` atto (10**-18)
|
2708
|
-
# * `z` zepto (10**-21)
|
2709
|
-
# * `y` yocto (10**-24)
|
2710
|
-
# * `Ki` kibi (2**10)
|
2711
|
-
# * `Mi` mebi (2**20)
|
2712
|
-
# * `Gi` gibi (2**30)
|
2713
|
-
# * `Ti` tebi (2**40)
|
2682
|
+
# * `Ki` kibi (2^10)
|
2683
|
+
# * `Mi` mebi (2^20)
|
2684
|
+
# * `Gi` gibi (2^30)
|
2685
|
+
# * `Ti` tebi (2^40)
|
2686
|
+
# * `Pi` pebi (2^50)
|
2714
2687
|
# **Grammar**
|
2715
2688
|
# The grammar also includes these connectors:
|
2716
|
-
# * `/` division (as an infix operator
|
2717
|
-
#
|
2689
|
+
# * `/` division or ratio (as an infix operator). For examples,
|
2690
|
+
# `kBy/`email`` or `MiBy/10ms` (although you should almost never
|
2691
|
+
# have `/s` in a metric `unit`; rates should always be computed at
|
2692
|
+
# query time from the underlying cumulative or delta value).
|
2693
|
+
# * `.` multiplication or composition (as an infix operator). For
|
2694
|
+
# examples, `GBy.d` or `k`watt`.h`.
|
2718
2695
|
# The grammar for a unit is as follows:
|
2719
2696
|
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
2720
2697
|
# Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
@@ -2723,14 +2700,25 @@ module Google
|
|
2723
2700
|
# ;
|
2724
2701
|
# Annotation = "`" NAME "`" ;
|
2725
2702
|
# Notes:
|
2726
|
-
# * `Annotation` is just a comment if it follows a `UNIT
|
2727
|
-
#
|
2728
|
-
# ``
|
2703
|
+
# * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
2704
|
+
# is used alone, then the unit is equivalent to `1`. For examples,
|
2705
|
+
# ``request`/s == 1/s`, `By`transmitted`/s == By/s`.
|
2729
2706
|
# * `NAME` is a sequence of non-blank printable ASCII characters not
|
2730
|
-
# containing
|
2731
|
-
# * `1` represents
|
2732
|
-
#
|
2733
|
-
#
|
2707
|
+
# containing ``` or ```.
|
2708
|
+
# * `1` represents a unitary [dimensionless
|
2709
|
+
# unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
2710
|
+
# as in `1/s`. It is typically used when none of the basic units are
|
2711
|
+
# appropriate. For example, "new users per day" can be represented as
|
2712
|
+
# `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new
|
2713
|
+
# users). Alternatively, "thousands of page views per day" would be
|
2714
|
+
# represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric
|
2715
|
+
# value of `5.3` would mean "5300 page views per day").
|
2716
|
+
# * `%` represents dimensionless value of 1/100, and annotates values giving
|
2717
|
+
# a percentage (so the metric values are typically in the range of 0..100,
|
2718
|
+
# and a metric value `3` means "3 percent").
|
2719
|
+
# * `10^2.%` indicates a metric contains a ratio, typically in the range
|
2720
|
+
# 0..1, that will be multiplied by 100 and displayed as a percentage
|
2721
|
+
# (so a metric value `0.03` means "3 percent").
|
2734
2722
|
# Corresponds to the JSON property `unit`
|
2735
2723
|
# @return [String]
|
2736
2724
|
attr_accessor :unit
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://developers.google.com/streetview/publish/
|
28
28
|
module StreetviewpublishV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20191202'
|
31
31
|
|
32
32
|
# Publish and manage your 360 photos on Google Street View
|
33
33
|
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'
|
@@ -344,7 +344,7 @@ module Google
|
|
344
344
|
attr_accessor :download_url
|
345
345
|
|
346
346
|
# Output only. Status in Google Maps, whether this photo was published or
|
347
|
-
# rejected.
|
347
|
+
# rejected. Not currently populated.
|
348
348
|
# Corresponds to the JSON property `mapsPublishStatus`
|
349
349
|
# @return [String]
|
350
350
|
attr_accessor :maps_publish_status
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-12-
|
14
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|
@@ -439,10 +439,6 @@ files:
|
|
439
439
|
- generated/google/apis/cloudbuild_v1/classes.rb
|
440
440
|
- generated/google/apis/cloudbuild_v1/representations.rb
|
441
441
|
- generated/google/apis/cloudbuild_v1/service.rb
|
442
|
-
- generated/google/apis/cloudbuild_v1alpha1.rb
|
443
|
-
- generated/google/apis/cloudbuild_v1alpha1/classes.rb
|
444
|
-
- generated/google/apis/cloudbuild_v1alpha1/representations.rb
|
445
|
-
- generated/google/apis/cloudbuild_v1alpha1/service.rb
|
446
442
|
- generated/google/apis/clouddebugger_v2.rb
|
447
443
|
- generated/google/apis/clouddebugger_v2/classes.rb
|
448
444
|
- generated/google/apis/clouddebugger_v2/representations.rb
|
@@ -1343,7 +1339,7 @@ homepage: https://github.com/google/google-api-ruby-client
|
|
1343
1339
|
licenses:
|
1344
1340
|
- Apache-2.0
|
1345
1341
|
metadata:
|
1346
|
-
documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.
|
1342
|
+
documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.36.0
|
1347
1343
|
post_install_message:
|
1348
1344
|
rdoc_options: []
|
1349
1345
|
require_paths:
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/cloudbuild_v1alpha1/service.rb'
|
16
|
-
require 'google/apis/cloudbuild_v1alpha1/classes.rb'
|
17
|
-
require 'google/apis/cloudbuild_v1alpha1/representations.rb'
|
18
|
-
|
19
|
-
module Google
|
20
|
-
module Apis
|
21
|
-
# Cloud Build API
|
22
|
-
#
|
23
|
-
# Creates and manages builds on Google Cloud Platform.
|
24
|
-
#
|
25
|
-
# @see https://cloud.google.com/cloud-build/docs/
|
26
|
-
module CloudbuildV1alpha1
|
27
|
-
VERSION = 'V1alpha1'
|
28
|
-
REVISION = '20191120'
|
29
|
-
|
30
|
-
# View and manage your data across Google Cloud Platform services
|
31
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,1174 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module CloudbuildV1alpha1
|
24
|
-
|
25
|
-
# Files in the workspace to upload to Cloud Storage upon successful
|
26
|
-
# completion of all build steps.
|
27
|
-
class ArtifactObjects
|
28
|
-
include Google::Apis::Core::Hashable
|
29
|
-
|
30
|
-
# Cloud Storage bucket and optional object path, in the form
|
31
|
-
# "gs://bucket/path/to/somewhere/". (see [Bucket Name
|
32
|
-
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
33
|
-
# ).
|
34
|
-
# Files in the workspace matching any path pattern will be uploaded to
|
35
|
-
# Cloud Storage with this location as a prefix.
|
36
|
-
# Corresponds to the JSON property `location`
|
37
|
-
# @return [String]
|
38
|
-
attr_accessor :location
|
39
|
-
|
40
|
-
# Path globs used to match files in the build's workspace.
|
41
|
-
# Corresponds to the JSON property `paths`
|
42
|
-
# @return [Array<String>]
|
43
|
-
attr_accessor :paths
|
44
|
-
|
45
|
-
# Start and end times for a build execution phase.
|
46
|
-
# Corresponds to the JSON property `timing`
|
47
|
-
# @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
|
48
|
-
attr_accessor :timing
|
49
|
-
|
50
|
-
def initialize(**args)
|
51
|
-
update!(**args)
|
52
|
-
end
|
53
|
-
|
54
|
-
# Update properties of this object
|
55
|
-
def update!(**args)
|
56
|
-
@location = args[:location] if args.key?(:location)
|
57
|
-
@paths = args[:paths] if args.key?(:paths)
|
58
|
-
@timing = args[:timing] if args.key?(:timing)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
# An artifact that was uploaded during a build. This
|
63
|
-
# is a single record in the artifact manifest JSON file.
|
64
|
-
class ArtifactResult
|
65
|
-
include Google::Apis::Core::Hashable
|
66
|
-
|
67
|
-
# The file hash of the artifact.
|
68
|
-
# Corresponds to the JSON property `fileHash`
|
69
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::FileHashes>]
|
70
|
-
attr_accessor :file_hash
|
71
|
-
|
72
|
-
# The path of an artifact in a Google Cloud Storage bucket, with the
|
73
|
-
# generation number. For example,
|
74
|
-
# `gs://mybucket/path/to/output.jar#generation`.
|
75
|
-
# Corresponds to the JSON property `location`
|
76
|
-
# @return [String]
|
77
|
-
attr_accessor :location
|
78
|
-
|
79
|
-
def initialize(**args)
|
80
|
-
update!(**args)
|
81
|
-
end
|
82
|
-
|
83
|
-
# Update properties of this object
|
84
|
-
def update!(**args)
|
85
|
-
@file_hash = args[:file_hash] if args.key?(:file_hash)
|
86
|
-
@location = args[:location] if args.key?(:location)
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
# Artifacts produced by a build that should be uploaded upon
|
91
|
-
# successful completion of all build steps.
|
92
|
-
class Artifacts
|
93
|
-
include Google::Apis::Core::Hashable
|
94
|
-
|
95
|
-
# A list of images to be pushed upon the successful completion of all build
|
96
|
-
# steps.
|
97
|
-
# The images will be pushed using the builder service account's credentials.
|
98
|
-
# The digests of the pushed images will be stored in the Build resource's
|
99
|
-
# results field.
|
100
|
-
# If any of the images fail to be pushed, the build is marked FAILURE.
|
101
|
-
# Corresponds to the JSON property `images`
|
102
|
-
# @return [Array<String>]
|
103
|
-
attr_accessor :images
|
104
|
-
|
105
|
-
# Files in the workspace to upload to Cloud Storage upon successful
|
106
|
-
# completion of all build steps.
|
107
|
-
# Corresponds to the JSON property `objects`
|
108
|
-
# @return [Google::Apis::CloudbuildV1alpha1::ArtifactObjects]
|
109
|
-
attr_accessor :objects
|
110
|
-
|
111
|
-
def initialize(**args)
|
112
|
-
update!(**args)
|
113
|
-
end
|
114
|
-
|
115
|
-
# Update properties of this object
|
116
|
-
def update!(**args)
|
117
|
-
@images = args[:images] if args.key?(:images)
|
118
|
-
@objects = args[:objects] if args.key?(:objects)
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
# A build resource in the Cloud Build API.
|
123
|
-
# At a high level, a `Build` describes where to find source code, how to build
|
124
|
-
# it (for example, the builder image to run on the source), and where to store
|
125
|
-
# the built artifacts.
|
126
|
-
# Fields can include the following variables, which will be expanded when the
|
127
|
-
# build is created:
|
128
|
-
# - $PROJECT_ID: the project ID of the build.
|
129
|
-
# - $BUILD_ID: the autogenerated ID of the build.
|
130
|
-
# - $REPO_NAME: the source repository name specified by RepoSource.
|
131
|
-
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
132
|
-
# - $TAG_NAME: the tag name specified by RepoSource.
|
133
|
-
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
|
134
|
-
# resolved from the specified branch or tag.
|
135
|
-
# - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
|
136
|
-
class Build
|
137
|
-
include Google::Apis::Core::Hashable
|
138
|
-
|
139
|
-
# Artifacts produced by a build that should be uploaded upon
|
140
|
-
# successful completion of all build steps.
|
141
|
-
# Corresponds to the JSON property `artifacts`
|
142
|
-
# @return [Google::Apis::CloudbuildV1alpha1::Artifacts]
|
143
|
-
attr_accessor :artifacts
|
144
|
-
|
145
|
-
# Output only. The ID of the `BuildTrigger` that triggered this build, if it
|
146
|
-
# was triggered automatically.
|
147
|
-
# Corresponds to the JSON property `buildTriggerId`
|
148
|
-
# @return [String]
|
149
|
-
attr_accessor :build_trigger_id
|
150
|
-
|
151
|
-
# Output only. Time at which the request to create the build was received.
|
152
|
-
# Corresponds to the JSON property `createTime`
|
153
|
-
# @return [String]
|
154
|
-
attr_accessor :create_time
|
155
|
-
|
156
|
-
# Output only. Time at which execution of the build was finished.
|
157
|
-
# The difference between finish_time and start_time is the duration of the
|
158
|
-
# build's execution.
|
159
|
-
# Corresponds to the JSON property `finishTime`
|
160
|
-
# @return [String]
|
161
|
-
attr_accessor :finish_time
|
162
|
-
|
163
|
-
# Output only. Unique identifier of the build.
|
164
|
-
# Corresponds to the JSON property `id`
|
165
|
-
# @return [String]
|
166
|
-
attr_accessor :id
|
167
|
-
|
168
|
-
# A list of images to be pushed upon the successful completion of all build
|
169
|
-
# steps.
|
170
|
-
# The images are pushed using the builder service account's credentials.
|
171
|
-
# The digests of the pushed images will be stored in the `Build` resource's
|
172
|
-
# results field.
|
173
|
-
# If any of the images fail to be pushed, the build status is marked
|
174
|
-
# `FAILURE`.
|
175
|
-
# Corresponds to the JSON property `images`
|
176
|
-
# @return [Array<String>]
|
177
|
-
attr_accessor :images
|
178
|
-
|
179
|
-
# Output only. URL to logs for this build in Google Cloud Console.
|
180
|
-
# Corresponds to the JSON property `logUrl`
|
181
|
-
# @return [String]
|
182
|
-
attr_accessor :log_url
|
183
|
-
|
184
|
-
# Google Cloud Storage bucket where logs should be written (see
|
185
|
-
# [Bucket Name
|
186
|
-
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
187
|
-
# ).
|
188
|
-
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
|
189
|
-
# Corresponds to the JSON property `logsBucket`
|
190
|
-
# @return [String]
|
191
|
-
attr_accessor :logs_bucket
|
192
|
-
|
193
|
-
# Optional arguments to enable specific features of builds.
|
194
|
-
# Corresponds to the JSON property `options`
|
195
|
-
# @return [Google::Apis::CloudbuildV1alpha1::BuildOptions]
|
196
|
-
attr_accessor :options
|
197
|
-
|
198
|
-
# Output only. ID of the project.
|
199
|
-
# Corresponds to the JSON property `projectId`
|
200
|
-
# @return [String]
|
201
|
-
attr_accessor :project_id
|
202
|
-
|
203
|
-
# Artifacts created by the build pipeline.
|
204
|
-
# Corresponds to the JSON property `results`
|
205
|
-
# @return [Google::Apis::CloudbuildV1alpha1::Results]
|
206
|
-
attr_accessor :results
|
207
|
-
|
208
|
-
# Secrets to decrypt using Cloud Key Management Service.
|
209
|
-
# Corresponds to the JSON property `secrets`
|
210
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::Secret>]
|
211
|
-
attr_accessor :secrets
|
212
|
-
|
213
|
-
# Location of the source in a supported storage service.
|
214
|
-
# Corresponds to the JSON property `source`
|
215
|
-
# @return [Google::Apis::CloudbuildV1alpha1::Source]
|
216
|
-
attr_accessor :source
|
217
|
-
|
218
|
-
# Provenance of the source. Ways to find the original source, or verify that
|
219
|
-
# some source was used for this build.
|
220
|
-
# Corresponds to the JSON property `sourceProvenance`
|
221
|
-
# @return [Google::Apis::CloudbuildV1alpha1::SourceProvenance]
|
222
|
-
attr_accessor :source_provenance
|
223
|
-
|
224
|
-
# Output only. Time at which execution of the build was started.
|
225
|
-
# Corresponds to the JSON property `startTime`
|
226
|
-
# @return [String]
|
227
|
-
attr_accessor :start_time
|
228
|
-
|
229
|
-
# Output only. Status of the build.
|
230
|
-
# Corresponds to the JSON property `status`
|
231
|
-
# @return [String]
|
232
|
-
attr_accessor :status
|
233
|
-
|
234
|
-
# Output only. Customer-readable message about the current status.
|
235
|
-
# Corresponds to the JSON property `statusDetail`
|
236
|
-
# @return [String]
|
237
|
-
attr_accessor :status_detail
|
238
|
-
|
239
|
-
# Required. The operations to be performed on the workspace.
|
240
|
-
# Corresponds to the JSON property `steps`
|
241
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::BuildStep>]
|
242
|
-
attr_accessor :steps
|
243
|
-
|
244
|
-
# Substitutions data for `Build` resource.
|
245
|
-
# Corresponds to the JSON property `substitutions`
|
246
|
-
# @return [Hash<String,String>]
|
247
|
-
attr_accessor :substitutions
|
248
|
-
|
249
|
-
# Tags for annotation of a `Build`. These are not docker tags.
|
250
|
-
# Corresponds to the JSON property `tags`
|
251
|
-
# @return [Array<String>]
|
252
|
-
attr_accessor :tags
|
253
|
-
|
254
|
-
# Amount of time that this build should be allowed to run, to second
|
255
|
-
# granularity. If this amount of time elapses, work on the build will cease
|
256
|
-
# and the build status will be `TIMEOUT`.
|
257
|
-
# Default time is ten minutes.
|
258
|
-
# Corresponds to the JSON property `timeout`
|
259
|
-
# @return [String]
|
260
|
-
attr_accessor :timeout
|
261
|
-
|
262
|
-
# Output only. Stores timing information for phases of the build. Valid keys
|
263
|
-
# are:
|
264
|
-
# * BUILD: time to execute all build steps
|
265
|
-
# * PUSH: time to push all specified images.
|
266
|
-
# * FETCHSOURCE: time to fetch source.
|
267
|
-
# If the build does not specify source or images,
|
268
|
-
# these keys will not be included.
|
269
|
-
# Corresponds to the JSON property `timing`
|
270
|
-
# @return [Hash<String,Google::Apis::CloudbuildV1alpha1::TimeSpan>]
|
271
|
-
attr_accessor :timing
|
272
|
-
|
273
|
-
def initialize(**args)
|
274
|
-
update!(**args)
|
275
|
-
end
|
276
|
-
|
277
|
-
# Update properties of this object
|
278
|
-
def update!(**args)
|
279
|
-
@artifacts = args[:artifacts] if args.key?(:artifacts)
|
280
|
-
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
281
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
282
|
-
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
283
|
-
@id = args[:id] if args.key?(:id)
|
284
|
-
@images = args[:images] if args.key?(:images)
|
285
|
-
@log_url = args[:log_url] if args.key?(:log_url)
|
286
|
-
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
287
|
-
@options = args[:options] if args.key?(:options)
|
288
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
289
|
-
@results = args[:results] if args.key?(:results)
|
290
|
-
@secrets = args[:secrets] if args.key?(:secrets)
|
291
|
-
@source = args[:source] if args.key?(:source)
|
292
|
-
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
293
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
294
|
-
@status = args[:status] if args.key?(:status)
|
295
|
-
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
296
|
-
@steps = args[:steps] if args.key?(:steps)
|
297
|
-
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
298
|
-
@tags = args[:tags] if args.key?(:tags)
|
299
|
-
@timeout = args[:timeout] if args.key?(:timeout)
|
300
|
-
@timing = args[:timing] if args.key?(:timing)
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
# Metadata for build operations.
|
305
|
-
class BuildOperationMetadata
|
306
|
-
include Google::Apis::Core::Hashable
|
307
|
-
|
308
|
-
# A build resource in the Cloud Build API.
|
309
|
-
# At a high level, a `Build` describes where to find source code, how to build
|
310
|
-
# it (for example, the builder image to run on the source), and where to store
|
311
|
-
# the built artifacts.
|
312
|
-
# Fields can include the following variables, which will be expanded when the
|
313
|
-
# build is created:
|
314
|
-
# - $PROJECT_ID: the project ID of the build.
|
315
|
-
# - $BUILD_ID: the autogenerated ID of the build.
|
316
|
-
# - $REPO_NAME: the source repository name specified by RepoSource.
|
317
|
-
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
318
|
-
# - $TAG_NAME: the tag name specified by RepoSource.
|
319
|
-
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
|
320
|
-
# resolved from the specified branch or tag.
|
321
|
-
# - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
|
322
|
-
# Corresponds to the JSON property `build`
|
323
|
-
# @return [Google::Apis::CloudbuildV1alpha1::Build]
|
324
|
-
attr_accessor :build
|
325
|
-
|
326
|
-
def initialize(**args)
|
327
|
-
update!(**args)
|
328
|
-
end
|
329
|
-
|
330
|
-
# Update properties of this object
|
331
|
-
def update!(**args)
|
332
|
-
@build = args[:build] if args.key?(:build)
|
333
|
-
end
|
334
|
-
end
|
335
|
-
|
336
|
-
# Optional arguments to enable specific features of builds.
|
337
|
-
class BuildOptions
|
338
|
-
include Google::Apis::Core::Hashable
|
339
|
-
|
340
|
-
# Requested disk size for the VM that runs the build. Note that this is *NOT*
|
341
|
-
# "disk free"; some of the space will be used by the operating system and
|
342
|
-
# build utilities. Also note that this is the minimum disk size that will be
|
343
|
-
# allocated for the build -- the build may run with a larger disk than
|
344
|
-
# requested. At present, the maximum disk size is 1000GB; builds that request
|
345
|
-
# more than the maximum are rejected with an error.
|
346
|
-
# Corresponds to the JSON property `diskSizeGb`
|
347
|
-
# @return [Fixnum]
|
348
|
-
attr_accessor :disk_size_gb
|
349
|
-
|
350
|
-
# A list of global environment variable definitions that will exist for all
|
351
|
-
# build steps in this build. If a variable is defined in both globally and in
|
352
|
-
# a build step, the variable will use the build step value.
|
353
|
-
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
|
354
|
-
# being given the value "VALUE".
|
355
|
-
# Corresponds to the JSON property `env`
|
356
|
-
# @return [Array<String>]
|
357
|
-
attr_accessor :env
|
358
|
-
|
359
|
-
# Option to define build log streaming behavior to Google Cloud
|
360
|
-
# Storage.
|
361
|
-
# Corresponds to the JSON property `logStreamingOption`
|
362
|
-
# @return [String]
|
363
|
-
attr_accessor :log_streaming_option
|
364
|
-
|
365
|
-
# Option to specify the logging mode, which determines where the logs are
|
366
|
-
# stored.
|
367
|
-
# Corresponds to the JSON property `logging`
|
368
|
-
# @return [String]
|
369
|
-
attr_accessor :logging
|
370
|
-
|
371
|
-
# Compute Engine machine type on which to run the build.
|
372
|
-
# Corresponds to the JSON property `machineType`
|
373
|
-
# @return [String]
|
374
|
-
attr_accessor :machine_type
|
375
|
-
|
376
|
-
# Requested verifiability options.
|
377
|
-
# Corresponds to the JSON property `requestedVerifyOption`
|
378
|
-
# @return [String]
|
379
|
-
attr_accessor :requested_verify_option
|
380
|
-
|
381
|
-
# A list of global environment variables, which are encrypted using a Cloud
|
382
|
-
# Key Management Service crypto key. These values must be specified in the
|
383
|
-
# build's `Secret`. These variables will be available to all build steps
|
384
|
-
# in this build.
|
385
|
-
# Corresponds to the JSON property `secretEnv`
|
386
|
-
# @return [Array<String>]
|
387
|
-
attr_accessor :secret_env
|
388
|
-
|
389
|
-
# Requested hash for SourceProvenance.
|
390
|
-
# Corresponds to the JSON property `sourceProvenanceHash`
|
391
|
-
# @return [Array<String>]
|
392
|
-
attr_accessor :source_provenance_hash
|
393
|
-
|
394
|
-
# Option to specify behavior when there is an error in the substitution
|
395
|
-
# checks.
|
396
|
-
# Corresponds to the JSON property `substitutionOption`
|
397
|
-
# @return [String]
|
398
|
-
attr_accessor :substitution_option
|
399
|
-
|
400
|
-
# Global list of volumes to mount for ALL build steps
|
401
|
-
# Each volume is created as an empty volume prior to starting the build
|
402
|
-
# process. Upon completion of the build, volumes and their contents are
|
403
|
-
# discarded. Global volume names and paths cannot conflict with the volumes
|
404
|
-
# defined a build step.
|
405
|
-
# Using a global volume in a build with only one step is not valid as
|
406
|
-
# it is indicative of a build request with an incorrect configuration.
|
407
|
-
# Corresponds to the JSON property `volumes`
|
408
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::Volume>]
|
409
|
-
attr_accessor :volumes
|
410
|
-
|
411
|
-
# Option to specify a `WorkerPool` for the build. User specifies the pool
|
412
|
-
# with the format "[WORKERPOOL_PROJECT_ID]/[WORKERPOOL_NAME]".
|
413
|
-
# This is an experimental field.
|
414
|
-
# Corresponds to the JSON property `workerPool`
|
415
|
-
# @return [String]
|
416
|
-
attr_accessor :worker_pool
|
417
|
-
|
418
|
-
def initialize(**args)
|
419
|
-
update!(**args)
|
420
|
-
end
|
421
|
-
|
422
|
-
# Update properties of this object
|
423
|
-
def update!(**args)
|
424
|
-
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
425
|
-
@env = args[:env] if args.key?(:env)
|
426
|
-
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
|
427
|
-
@logging = args[:logging] if args.key?(:logging)
|
428
|
-
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
429
|
-
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
430
|
-
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
431
|
-
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
432
|
-
@substitution_option = args[:substitution_option] if args.key?(:substitution_option)
|
433
|
-
@volumes = args[:volumes] if args.key?(:volumes)
|
434
|
-
@worker_pool = args[:worker_pool] if args.key?(:worker_pool)
|
435
|
-
end
|
436
|
-
end
|
437
|
-
|
438
|
-
# A step in the build pipeline.
|
439
|
-
class BuildStep
|
440
|
-
include Google::Apis::Core::Hashable
|
441
|
-
|
442
|
-
# A list of arguments that will be presented to the step when it is started.
|
443
|
-
# If the image used to run the step's container has an entrypoint, the `args`
|
444
|
-
# are used as arguments to that entrypoint. If the image does not define
|
445
|
-
# an entrypoint, the first element in args is used as the entrypoint,
|
446
|
-
# and the remainder will be used as arguments.
|
447
|
-
# Corresponds to the JSON property `args`
|
448
|
-
# @return [Array<String>]
|
449
|
-
attr_accessor :args
|
450
|
-
|
451
|
-
# Working directory to use when running this step's container.
|
452
|
-
# If this value is a relative path, it is relative to the build's working
|
453
|
-
# directory. If this value is absolute, it may be outside the build's working
|
454
|
-
# directory, in which case the contents of the path may not be persisted
|
455
|
-
# across build step executions, unless a `volume` for that path is specified.
|
456
|
-
# If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
|
457
|
-
# which specifies an absolute path, the `RepoSource` `dir` is ignored for
|
458
|
-
# the step's execution.
|
459
|
-
# Corresponds to the JSON property `dir`
|
460
|
-
# @return [String]
|
461
|
-
attr_accessor :dir
|
462
|
-
|
463
|
-
# Entrypoint to be used instead of the build step image's default entrypoint.
|
464
|
-
# If unset, the image's default entrypoint is used.
|
465
|
-
# Corresponds to the JSON property `entrypoint`
|
466
|
-
# @return [String]
|
467
|
-
attr_accessor :entrypoint
|
468
|
-
|
469
|
-
# A list of environment variable definitions to be used when running a step.
|
470
|
-
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
|
471
|
-
# being given the value "VALUE".
|
472
|
-
# Corresponds to the JSON property `env`
|
473
|
-
# @return [Array<String>]
|
474
|
-
attr_accessor :env
|
475
|
-
|
476
|
-
# Unique identifier for this build step, used in `wait_for` to
|
477
|
-
# reference this build step as a dependency.
|
478
|
-
# Corresponds to the JSON property `id`
|
479
|
-
# @return [String]
|
480
|
-
attr_accessor :id
|
481
|
-
|
482
|
-
# Required. The name of the container image that will run this particular
|
483
|
-
# build step.
|
484
|
-
# If the image is available in the host's Docker daemon's cache, it
|
485
|
-
# will be run directly. If not, the host will attempt to pull the image
|
486
|
-
# first, using the builder service account's credentials if necessary.
|
487
|
-
# The Docker daemon's cache will already have the latest versions of all of
|
488
|
-
# the officially supported build steps
|
489
|
-
# ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
|
490
|
-
# GoogleCloudPlatform/cloud-builders)).
|
491
|
-
# The Docker daemon will also have cached many of the layers for some popular
|
492
|
-
# images, like "ubuntu", "debian", but they will be refreshed at the time you
|
493
|
-
# attempt to use them.
|
494
|
-
# If you built an image in a previous build step, it will be stored in the
|
495
|
-
# host's Docker daemon's cache and is available to use as the name for a
|
496
|
-
# later build step.
|
497
|
-
# Corresponds to the JSON property `name`
|
498
|
-
# @return [String]
|
499
|
-
attr_accessor :name
|
500
|
-
|
501
|
-
# Start and end times for a build execution phase.
|
502
|
-
# Corresponds to the JSON property `pullTiming`
|
503
|
-
# @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
|
504
|
-
attr_accessor :pull_timing
|
505
|
-
|
506
|
-
# A list of environment variables which are encrypted using a Cloud Key
|
507
|
-
# Management Service crypto key. These values must be specified in the
|
508
|
-
# build's `Secret`.
|
509
|
-
# Corresponds to the JSON property `secretEnv`
|
510
|
-
# @return [Array<String>]
|
511
|
-
attr_accessor :secret_env
|
512
|
-
|
513
|
-
# Output only. Status of the build step. At this time, build step status is
|
514
|
-
# only updated on build completion; step status is not updated in real-time
|
515
|
-
# as the build progresses.
|
516
|
-
# Corresponds to the JSON property `status`
|
517
|
-
# @return [String]
|
518
|
-
attr_accessor :status
|
519
|
-
|
520
|
-
# Time limit for executing this build step. If not defined, the step has no
|
521
|
-
# time limit and will be allowed to continue to run until either it completes
|
522
|
-
# or the build itself times out.
|
523
|
-
# Corresponds to the JSON property `timeout`
|
524
|
-
# @return [String]
|
525
|
-
attr_accessor :timeout
|
526
|
-
|
527
|
-
# Start and end times for a build execution phase.
|
528
|
-
# Corresponds to the JSON property `timing`
|
529
|
-
# @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
|
530
|
-
attr_accessor :timing
|
531
|
-
|
532
|
-
# List of volumes to mount into the build step.
|
533
|
-
# Each volume is created as an empty volume prior to execution of the
|
534
|
-
# build step. Upon completion of the build, volumes and their contents are
|
535
|
-
# discarded.
|
536
|
-
# Using a named volume in only one step is not valid as it is indicative
|
537
|
-
# of a build request with an incorrect configuration.
|
538
|
-
# Corresponds to the JSON property `volumes`
|
539
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::Volume>]
|
540
|
-
attr_accessor :volumes
|
541
|
-
|
542
|
-
# The ID(s) of the step(s) that this build step depends on.
|
543
|
-
# This build step will not start until all the build steps in `wait_for`
|
544
|
-
# have completed successfully. If `wait_for` is empty, this build step will
|
545
|
-
# start when all previous build steps in the `Build.Steps` list have
|
546
|
-
# completed successfully.
|
547
|
-
# Corresponds to the JSON property `waitFor`
|
548
|
-
# @return [Array<String>]
|
549
|
-
attr_accessor :wait_for
|
550
|
-
|
551
|
-
def initialize(**args)
|
552
|
-
update!(**args)
|
553
|
-
end
|
554
|
-
|
555
|
-
# Update properties of this object
|
556
|
-
def update!(**args)
|
557
|
-
@args = args[:args] if args.key?(:args)
|
558
|
-
@dir = args[:dir] if args.key?(:dir)
|
559
|
-
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
560
|
-
@env = args[:env] if args.key?(:env)
|
561
|
-
@id = args[:id] if args.key?(:id)
|
562
|
-
@name = args[:name] if args.key?(:name)
|
563
|
-
@pull_timing = args[:pull_timing] if args.key?(:pull_timing)
|
564
|
-
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
565
|
-
@status = args[:status] if args.key?(:status)
|
566
|
-
@timeout = args[:timeout] if args.key?(:timeout)
|
567
|
-
@timing = args[:timing] if args.key?(:timing)
|
568
|
-
@volumes = args[:volumes] if args.key?(:volumes)
|
569
|
-
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
570
|
-
end
|
571
|
-
end
|
572
|
-
|
573
|
-
# An image built by the pipeline.
|
574
|
-
class BuiltImage
|
575
|
-
include Google::Apis::Core::Hashable
|
576
|
-
|
577
|
-
# Docker Registry 2.0 digest.
|
578
|
-
# Corresponds to the JSON property `digest`
|
579
|
-
# @return [String]
|
580
|
-
attr_accessor :digest
|
581
|
-
|
582
|
-
# Name used to push the container image to Google Container Registry, as
|
583
|
-
# presented to `docker push`.
|
584
|
-
# Corresponds to the JSON property `name`
|
585
|
-
# @return [String]
|
586
|
-
attr_accessor :name
|
587
|
-
|
588
|
-
# Start and end times for a build execution phase.
|
589
|
-
# Corresponds to the JSON property `pushTiming`
|
590
|
-
# @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
|
591
|
-
attr_accessor :push_timing
|
592
|
-
|
593
|
-
def initialize(**args)
|
594
|
-
update!(**args)
|
595
|
-
end
|
596
|
-
|
597
|
-
# Update properties of this object
|
598
|
-
def update!(**args)
|
599
|
-
@digest = args[:digest] if args.key?(:digest)
|
600
|
-
@name = args[:name] if args.key?(:name)
|
601
|
-
@push_timing = args[:push_timing] if args.key?(:push_timing)
|
602
|
-
end
|
603
|
-
end
|
604
|
-
|
605
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
606
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
607
|
-
# or the response type of an API method. For instance:
|
608
|
-
# service Foo `
|
609
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
610
|
-
# `
|
611
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
612
|
-
class Empty
|
613
|
-
include Google::Apis::Core::Hashable
|
614
|
-
|
615
|
-
def initialize(**args)
|
616
|
-
update!(**args)
|
617
|
-
end
|
618
|
-
|
619
|
-
# Update properties of this object
|
620
|
-
def update!(**args)
|
621
|
-
end
|
622
|
-
end
|
623
|
-
|
624
|
-
# Container message for hashes of byte content of files, used in
|
625
|
-
# SourceProvenance messages to verify integrity of source input to the build.
|
626
|
-
class FileHashes
|
627
|
-
include Google::Apis::Core::Hashable
|
628
|
-
|
629
|
-
# Collection of file hashes.
|
630
|
-
# Corresponds to the JSON property `fileHash`
|
631
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::HashProp>]
|
632
|
-
attr_accessor :file_hash
|
633
|
-
|
634
|
-
def initialize(**args)
|
635
|
-
update!(**args)
|
636
|
-
end
|
637
|
-
|
638
|
-
# Update properties of this object
|
639
|
-
def update!(**args)
|
640
|
-
@file_hash = args[:file_hash] if args.key?(:file_hash)
|
641
|
-
end
|
642
|
-
end
|
643
|
-
|
644
|
-
# Container message for hash values.
|
645
|
-
class HashProp
|
646
|
-
include Google::Apis::Core::Hashable
|
647
|
-
|
648
|
-
# The type of hash that was performed.
|
649
|
-
# Corresponds to the JSON property `type`
|
650
|
-
# @return [String]
|
651
|
-
attr_accessor :type
|
652
|
-
|
653
|
-
# The hash value.
|
654
|
-
# Corresponds to the JSON property `value`
|
655
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
656
|
-
# @return [String]
|
657
|
-
attr_accessor :value
|
658
|
-
|
659
|
-
def initialize(**args)
|
660
|
-
update!(**args)
|
661
|
-
end
|
662
|
-
|
663
|
-
# Update properties of this object
|
664
|
-
def update!(**args)
|
665
|
-
@type = args[:type] if args.key?(:type)
|
666
|
-
@value = args[:value] if args.key?(:value)
|
667
|
-
end
|
668
|
-
end
|
669
|
-
|
670
|
-
# Response containing existing `WorkerPools`.
|
671
|
-
class ListWorkerPoolsResponse
|
672
|
-
include Google::Apis::Core::Hashable
|
673
|
-
|
674
|
-
# `WorkerPools` for the project.
|
675
|
-
# Corresponds to the JSON property `workerPools`
|
676
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::WorkerPool>]
|
677
|
-
attr_accessor :worker_pools
|
678
|
-
|
679
|
-
def initialize(**args)
|
680
|
-
update!(**args)
|
681
|
-
end
|
682
|
-
|
683
|
-
# Update properties of this object
|
684
|
-
def update!(**args)
|
685
|
-
@worker_pools = args[:worker_pools] if args.key?(:worker_pools)
|
686
|
-
end
|
687
|
-
end
|
688
|
-
|
689
|
-
# Network describes the GCP network used to create workers in.
|
690
|
-
class Network
|
691
|
-
include Google::Apis::Core::Hashable
|
692
|
-
|
693
|
-
# Network on which the workers are created.
|
694
|
-
# "default" network is used if empty.
|
695
|
-
# Corresponds to the JSON property `network`
|
696
|
-
# @return [String]
|
697
|
-
attr_accessor :network
|
698
|
-
|
699
|
-
# Project id containing the defined network and subnetwork. For a peered VPC,
|
700
|
-
# this will be the same as the project_id in which the workers are created.
|
701
|
-
# For a shared VPC, this will be the project sharing the network with the
|
702
|
-
# project_id project in which workers will be created. For custom workers
|
703
|
-
# with no VPC, this will be the same as project_id.
|
704
|
-
# Corresponds to the JSON property `projectId`
|
705
|
-
# @return [String]
|
706
|
-
attr_accessor :project_id
|
707
|
-
|
708
|
-
# Subnetwork on which the workers are created.
|
709
|
-
# "default" subnetwork is used if empty.
|
710
|
-
# Corresponds to the JSON property `subnetwork`
|
711
|
-
# @return [String]
|
712
|
-
attr_accessor :subnetwork
|
713
|
-
|
714
|
-
def initialize(**args)
|
715
|
-
update!(**args)
|
716
|
-
end
|
717
|
-
|
718
|
-
# Update properties of this object
|
719
|
-
def update!(**args)
|
720
|
-
@network = args[:network] if args.key?(:network)
|
721
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
722
|
-
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
723
|
-
end
|
724
|
-
end
|
725
|
-
|
726
|
-
# Location of the source in a Google Cloud Source Repository.
|
727
|
-
class RepoSource
|
728
|
-
include Google::Apis::Core::Hashable
|
729
|
-
|
730
|
-
# Regex matching branches to build.
|
731
|
-
# The syntax of the regular expressions accepted is the syntax accepted by
|
732
|
-
# RE2 and described at https://github.com/google/re2/wiki/Syntax
|
733
|
-
# Corresponds to the JSON property `branchName`
|
734
|
-
# @return [String]
|
735
|
-
attr_accessor :branch_name
|
736
|
-
|
737
|
-
# Explicit commit SHA to build.
|
738
|
-
# Corresponds to the JSON property `commitSha`
|
739
|
-
# @return [String]
|
740
|
-
attr_accessor :commit_sha
|
741
|
-
|
742
|
-
# Directory, relative to the source root, in which to run the build.
|
743
|
-
# This must be a relative path. If a step's `dir` is specified and is an
|
744
|
-
# absolute path, this value is ignored for that step's execution.
|
745
|
-
# Corresponds to the JSON property `dir`
|
746
|
-
# @return [String]
|
747
|
-
attr_accessor :dir
|
748
|
-
|
749
|
-
# ID of the project that owns the Cloud Source Repository. If omitted, the
|
750
|
-
# project ID requesting the build is assumed.
|
751
|
-
# Corresponds to the JSON property `projectId`
|
752
|
-
# @return [String]
|
753
|
-
attr_accessor :project_id
|
754
|
-
|
755
|
-
# Required. Name of the Cloud Source Repository.
|
756
|
-
# Corresponds to the JSON property `repoName`
|
757
|
-
# @return [String]
|
758
|
-
attr_accessor :repo_name
|
759
|
-
|
760
|
-
# Substitutions to use in a triggered build.
|
761
|
-
# Should only be used with RunBuildTrigger
|
762
|
-
# Corresponds to the JSON property `substitutions`
|
763
|
-
# @return [Hash<String,String>]
|
764
|
-
attr_accessor :substitutions
|
765
|
-
|
766
|
-
# Regex matching tags to build.
|
767
|
-
# The syntax of the regular expressions accepted is the syntax accepted by
|
768
|
-
# RE2 and described at https://github.com/google/re2/wiki/Syntax
|
769
|
-
# Corresponds to the JSON property `tagName`
|
770
|
-
# @return [String]
|
771
|
-
attr_accessor :tag_name
|
772
|
-
|
773
|
-
def initialize(**args)
|
774
|
-
update!(**args)
|
775
|
-
end
|
776
|
-
|
777
|
-
# Update properties of this object
|
778
|
-
def update!(**args)
|
779
|
-
@branch_name = args[:branch_name] if args.key?(:branch_name)
|
780
|
-
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
|
781
|
-
@dir = args[:dir] if args.key?(:dir)
|
782
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
783
|
-
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
784
|
-
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
785
|
-
@tag_name = args[:tag_name] if args.key?(:tag_name)
|
786
|
-
end
|
787
|
-
end
|
788
|
-
|
789
|
-
# Artifacts created by the build pipeline.
|
790
|
-
class Results
|
791
|
-
include Google::Apis::Core::Hashable
|
792
|
-
|
793
|
-
# Path to the artifact manifest. Only populated when artifacts are uploaded.
|
794
|
-
# Corresponds to the JSON property `artifactManifest`
|
795
|
-
# @return [String]
|
796
|
-
attr_accessor :artifact_manifest
|
797
|
-
|
798
|
-
# Start and end times for a build execution phase.
|
799
|
-
# Corresponds to the JSON property `artifactTiming`
|
800
|
-
# @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
|
801
|
-
attr_accessor :artifact_timing
|
802
|
-
|
803
|
-
# List of build step digests, in the order corresponding to build step
|
804
|
-
# indices.
|
805
|
-
# Corresponds to the JSON property `buildStepImages`
|
806
|
-
# @return [Array<String>]
|
807
|
-
attr_accessor :build_step_images
|
808
|
-
|
809
|
-
# List of build step outputs, produced by builder images, in the order
|
810
|
-
# corresponding to build step indices.
|
811
|
-
# [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
|
812
|
-
# can produce this output by writing to `$BUILDER_OUTPUT/output`.
|
813
|
-
# Only the first 4KB of data is stored.
|
814
|
-
# Corresponds to the JSON property `buildStepOutputs`
|
815
|
-
# @return [Array<String>]
|
816
|
-
attr_accessor :build_step_outputs
|
817
|
-
|
818
|
-
# Container images that were built as a part of the build.
|
819
|
-
# Corresponds to the JSON property `images`
|
820
|
-
# @return [Array<Google::Apis::CloudbuildV1alpha1::BuiltImage>]
|
821
|
-
attr_accessor :images
|
822
|
-
|
823
|
-
# Number of artifacts uploaded. Only populated when artifacts are uploaded.
|
824
|
-
# Corresponds to the JSON property `numArtifacts`
|
825
|
-
# @return [Fixnum]
|
826
|
-
attr_accessor :num_artifacts
|
827
|
-
|
828
|
-
def initialize(**args)
|
829
|
-
update!(**args)
|
830
|
-
end
|
831
|
-
|
832
|
-
# Update properties of this object
|
833
|
-
def update!(**args)
|
834
|
-
@artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest)
|
835
|
-
@artifact_timing = args[:artifact_timing] if args.key?(:artifact_timing)
|
836
|
-
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
837
|
-
@build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
|
838
|
-
@images = args[:images] if args.key?(:images)
|
839
|
-
@num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
|
840
|
-
end
|
841
|
-
end
|
842
|
-
|
843
|
-
# Pairs a set of secret environment variables containing encrypted
|
844
|
-
# values with the Cloud KMS key to use to decrypt the value.
|
845
|
-
class Secret
|
846
|
-
include Google::Apis::Core::Hashable
|
847
|
-
|
848
|
-
# Cloud KMS key name to use to decrypt these envs.
|
849
|
-
# Corresponds to the JSON property `kmsKeyName`
|
850
|
-
# @return [String]
|
851
|
-
attr_accessor :kms_key_name
|
852
|
-
|
853
|
-
# Map of environment variable name to its encrypted value.
|
854
|
-
# Secret environment variables must be unique across all of a build's
|
855
|
-
# secrets, and must be used by at least one build step. Values can be at most
|
856
|
-
# 64 KB in size. There can be at most 100 secret values across all of a
|
857
|
-
# build's secrets.
|
858
|
-
# Corresponds to the JSON property `secretEnv`
|
859
|
-
# @return [Hash<String,String>]
|
860
|
-
attr_accessor :secret_env
|
861
|
-
|
862
|
-
def initialize(**args)
|
863
|
-
update!(**args)
|
864
|
-
end
|
865
|
-
|
866
|
-
# Update properties of this object
|
867
|
-
def update!(**args)
|
868
|
-
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
869
|
-
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
870
|
-
end
|
871
|
-
end
|
872
|
-
|
873
|
-
# Location of the source in a supported storage service.
|
874
|
-
class Source
|
875
|
-
include Google::Apis::Core::Hashable
|
876
|
-
|
877
|
-
# Location of the source in a Google Cloud Source Repository.
|
878
|
-
# Corresponds to the JSON property `repoSource`
|
879
|
-
# @return [Google::Apis::CloudbuildV1alpha1::RepoSource]
|
880
|
-
attr_accessor :repo_source
|
881
|
-
|
882
|
-
# Location of the source in an archive file in Google Cloud Storage.
|
883
|
-
# Corresponds to the JSON property `storageSource`
|
884
|
-
# @return [Google::Apis::CloudbuildV1alpha1::StorageSource]
|
885
|
-
attr_accessor :storage_source
|
886
|
-
|
887
|
-
def initialize(**args)
|
888
|
-
update!(**args)
|
889
|
-
end
|
890
|
-
|
891
|
-
# Update properties of this object
|
892
|
-
def update!(**args)
|
893
|
-
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
894
|
-
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
895
|
-
end
|
896
|
-
end
|
897
|
-
|
898
|
-
# Provenance of the source. Ways to find the original source, or verify that
|
899
|
-
# some source was used for this build.
|
900
|
-
class SourceProvenance
|
901
|
-
include Google::Apis::Core::Hashable
|
902
|
-
|
903
|
-
# Output only. Hash(es) of the build source, which can be used to verify that
|
904
|
-
# the original source integrity was maintained in the build. Note that
|
905
|
-
# `FileHashes` will only be populated if `BuildOptions` has requested a
|
906
|
-
# `SourceProvenanceHash`.
|
907
|
-
# The keys to this map are file paths used as build source and the values
|
908
|
-
# contain the hash values for those files.
|
909
|
-
# If the build source came in a single package such as a gzipped tarfile
|
910
|
-
# (`.tar.gz`), the `FileHash` will be for the single path to that file.
|
911
|
-
# Corresponds to the JSON property `fileHashes`
|
912
|
-
# @return [Hash<String,Google::Apis::CloudbuildV1alpha1::FileHashes>]
|
913
|
-
attr_accessor :file_hashes
|
914
|
-
|
915
|
-
# Location of the source in a Google Cloud Source Repository.
|
916
|
-
# Corresponds to the JSON property `resolvedRepoSource`
|
917
|
-
# @return [Google::Apis::CloudbuildV1alpha1::RepoSource]
|
918
|
-
attr_accessor :resolved_repo_source
|
919
|
-
|
920
|
-
# Location of the source in an archive file in Google Cloud Storage.
|
921
|
-
# Corresponds to the JSON property `resolvedStorageSource`
|
922
|
-
# @return [Google::Apis::CloudbuildV1alpha1::StorageSource]
|
923
|
-
attr_accessor :resolved_storage_source
|
924
|
-
|
925
|
-
def initialize(**args)
|
926
|
-
update!(**args)
|
927
|
-
end
|
928
|
-
|
929
|
-
# Update properties of this object
|
930
|
-
def update!(**args)
|
931
|
-
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
|
932
|
-
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
|
933
|
-
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
|
934
|
-
end
|
935
|
-
end
|
936
|
-
|
937
|
-
# Location of the source in an archive file in Google Cloud Storage.
|
938
|
-
class StorageSource
|
939
|
-
include Google::Apis::Core::Hashable
|
940
|
-
|
941
|
-
# Google Cloud Storage bucket containing the source (see
|
942
|
-
# [Bucket Name
|
943
|
-
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
944
|
-
# ).
|
945
|
-
# Corresponds to the JSON property `bucket`
|
946
|
-
# @return [String]
|
947
|
-
attr_accessor :bucket
|
948
|
-
|
949
|
-
# Google Cloud Storage generation for the object. If the generation is
|
950
|
-
# omitted, the latest generation will be used.
|
951
|
-
# Corresponds to the JSON property `generation`
|
952
|
-
# @return [Fixnum]
|
953
|
-
attr_accessor :generation
|
954
|
-
|
955
|
-
# Google Cloud Storage object containing the source.
|
956
|
-
# This object must be a gzipped archive file (`.tar.gz`) containing source to
|
957
|
-
# build.
|
958
|
-
# Corresponds to the JSON property `object`
|
959
|
-
# @return [String]
|
960
|
-
attr_accessor :object
|
961
|
-
|
962
|
-
def initialize(**args)
|
963
|
-
update!(**args)
|
964
|
-
end
|
965
|
-
|
966
|
-
# Update properties of this object
|
967
|
-
def update!(**args)
|
968
|
-
@bucket = args[:bucket] if args.key?(:bucket)
|
969
|
-
@generation = args[:generation] if args.key?(:generation)
|
970
|
-
@object = args[:object] if args.key?(:object)
|
971
|
-
end
|
972
|
-
end
|
973
|
-
|
974
|
-
# Start and end times for a build execution phase.
|
975
|
-
class TimeSpan
|
976
|
-
include Google::Apis::Core::Hashable
|
977
|
-
|
978
|
-
# End of time span.
|
979
|
-
# Corresponds to the JSON property `endTime`
|
980
|
-
# @return [String]
|
981
|
-
attr_accessor :end_time
|
982
|
-
|
983
|
-
# Start of time span.
|
984
|
-
# Corresponds to the JSON property `startTime`
|
985
|
-
# @return [String]
|
986
|
-
attr_accessor :start_time
|
987
|
-
|
988
|
-
def initialize(**args)
|
989
|
-
update!(**args)
|
990
|
-
end
|
991
|
-
|
992
|
-
# Update properties of this object
|
993
|
-
def update!(**args)
|
994
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
995
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
996
|
-
end
|
997
|
-
end
|
998
|
-
|
999
|
-
# Volume describes a Docker container volume which is mounted into build steps
|
1000
|
-
# in order to persist files across build step execution.
|
1001
|
-
class Volume
|
1002
|
-
include Google::Apis::Core::Hashable
|
1003
|
-
|
1004
|
-
# Name of the volume to mount.
|
1005
|
-
# Volume names must be unique per build step and must be valid names for
|
1006
|
-
# Docker volumes. Each named volume must be used by at least two build steps.
|
1007
|
-
# Corresponds to the JSON property `name`
|
1008
|
-
# @return [String]
|
1009
|
-
attr_accessor :name
|
1010
|
-
|
1011
|
-
# Path at which to mount the volume.
|
1012
|
-
# Paths must be absolute and cannot conflict with other volume paths on the
|
1013
|
-
# same build step or with certain reserved volume paths.
|
1014
|
-
# Corresponds to the JSON property `path`
|
1015
|
-
# @return [String]
|
1016
|
-
attr_accessor :path
|
1017
|
-
|
1018
|
-
def initialize(**args)
|
1019
|
-
update!(**args)
|
1020
|
-
end
|
1021
|
-
|
1022
|
-
# Update properties of this object
|
1023
|
-
def update!(**args)
|
1024
|
-
@name = args[:name] if args.key?(:name)
|
1025
|
-
@path = args[:path] if args.key?(:path)
|
1026
|
-
end
|
1027
|
-
end
|
1028
|
-
|
1029
|
-
# WorkerConfig defines the configuration to be used for a creating workers in
|
1030
|
-
# the pool.
|
1031
|
-
class WorkerConfig
|
1032
|
-
include Google::Apis::Core::Hashable
|
1033
|
-
|
1034
|
-
# Size of the disk attached to the worker, in GB.
|
1035
|
-
# See https://cloud.google.com/compute/docs/disks/
|
1036
|
-
# If `0` is specified, Cloud Build will use a standard disk size.
|
1037
|
-
# `disk_size` is overridden if you specify a different disk size in
|
1038
|
-
# `build_options`. In this case, a VM with a disk size specified in the
|
1039
|
-
# `build_options` will be created on demand at build time. For more
|
1040
|
-
# information see
|
1041
|
-
# https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.
|
1042
|
-
# builds#buildoptions
|
1043
|
-
# Corresponds to the JSON property `diskSizeGb`
|
1044
|
-
# @return [Fixnum]
|
1045
|
-
attr_accessor :disk_size_gb
|
1046
|
-
|
1047
|
-
# Machine Type of the worker, such as n1-standard-1.
|
1048
|
-
# See https://cloud.google.com/compute/docs/machine-types.
|
1049
|
-
# If left blank, Cloud Build will use a standard unspecified machine to
|
1050
|
-
# create the worker pool.
|
1051
|
-
# `machine_type` is overridden if you specify a different machine type in
|
1052
|
-
# `build_options`. In this case, the VM specified in the `build_options`
|
1053
|
-
# will be created on demand at build time. For more information see
|
1054
|
-
# https://cloud.google.com/cloud-build/docs/speeding-up-builds#
|
1055
|
-
# using_custom_virtual_machine_sizes
|
1056
|
-
# Corresponds to the JSON property `machineType`
|
1057
|
-
# @return [String]
|
1058
|
-
attr_accessor :machine_type
|
1059
|
-
|
1060
|
-
# Network describes the GCP network used to create workers in.
|
1061
|
-
# Corresponds to the JSON property `network`
|
1062
|
-
# @return [Google::Apis::CloudbuildV1alpha1::Network]
|
1063
|
-
attr_accessor :network
|
1064
|
-
|
1065
|
-
# The tag applied to the worker, and the same tag used by the firewall rule.
|
1066
|
-
# It is used to identify the Cloud Build workers among other VMs.
|
1067
|
-
# The default value for tag is `worker`.
|
1068
|
-
# Corresponds to the JSON property `tag`
|
1069
|
-
# @return [String]
|
1070
|
-
attr_accessor :tag
|
1071
|
-
|
1072
|
-
def initialize(**args)
|
1073
|
-
update!(**args)
|
1074
|
-
end
|
1075
|
-
|
1076
|
-
# Update properties of this object
|
1077
|
-
def update!(**args)
|
1078
|
-
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
1079
|
-
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
1080
|
-
@network = args[:network] if args.key?(:network)
|
1081
|
-
@tag = args[:tag] if args.key?(:tag)
|
1082
|
-
end
|
1083
|
-
end
|
1084
|
-
|
1085
|
-
# Configuration for a WorkerPool to run the builds.
|
1086
|
-
# Workers are machines that Cloud Build uses to run your builds. By default,
|
1087
|
-
# all workers run in a project owned by Cloud Build. To have full control over
|
1088
|
-
# the workers that execute your builds -- such as enabling them to access
|
1089
|
-
# private resources on your private network -- you can request Cloud Build to
|
1090
|
-
# run the workers in your own project by creating a custom workers pool.
|
1091
|
-
class WorkerPool
|
1092
|
-
include Google::Apis::Core::Hashable
|
1093
|
-
|
1094
|
-
# Output only. Time at which the request to create the `WorkerPool` was
|
1095
|
-
# received.
|
1096
|
-
# Corresponds to the JSON property `createTime`
|
1097
|
-
# @return [String]
|
1098
|
-
attr_accessor :create_time
|
1099
|
-
|
1100
|
-
# Output only. Time at which the request to delete the `WorkerPool` was
|
1101
|
-
# received.
|
1102
|
-
# Corresponds to the JSON property `deleteTime`
|
1103
|
-
# @return [String]
|
1104
|
-
attr_accessor :delete_time
|
1105
|
-
|
1106
|
-
# User-defined name of the `WorkerPool`.
|
1107
|
-
# Corresponds to the JSON property `name`
|
1108
|
-
# @return [String]
|
1109
|
-
attr_accessor :name
|
1110
|
-
|
1111
|
-
# The project ID of the GCP project for which the `WorkerPool` is created.
|
1112
|
-
# Corresponds to the JSON property `projectId`
|
1113
|
-
# @return [String]
|
1114
|
-
attr_accessor :project_id
|
1115
|
-
|
1116
|
-
# List of regions to create the `WorkerPool`. Regions can't be empty.
|
1117
|
-
# If Cloud Build adds a new GCP region in the future, the existing
|
1118
|
-
# `WorkerPool` will not be enabled in the new region automatically;
|
1119
|
-
# you must add the new region to the `regions` field to enable the
|
1120
|
-
# `WorkerPool` in that region.
|
1121
|
-
# Corresponds to the JSON property `regions`
|
1122
|
-
# @return [Array<String>]
|
1123
|
-
attr_accessor :regions
|
1124
|
-
|
1125
|
-
# Output only. The service account used to manage the `WorkerPool`. The
|
1126
|
-
# service account must have the Compute Instance Admin (Beta) permission at
|
1127
|
-
# the project level.
|
1128
|
-
# Corresponds to the JSON property `serviceAccountEmail`
|
1129
|
-
# @return [String]
|
1130
|
-
attr_accessor :service_account_email
|
1131
|
-
|
1132
|
-
# Output only. WorkerPool Status.
|
1133
|
-
# Corresponds to the JSON property `status`
|
1134
|
-
# @return [String]
|
1135
|
-
attr_accessor :status
|
1136
|
-
|
1137
|
-
# Output only. Time at which the request to update the `WorkerPool` was
|
1138
|
-
# received.
|
1139
|
-
# Corresponds to the JSON property `updateTime`
|
1140
|
-
# @return [String]
|
1141
|
-
attr_accessor :update_time
|
1142
|
-
|
1143
|
-
# WorkerConfig defines the configuration to be used for a creating workers in
|
1144
|
-
# the pool.
|
1145
|
-
# Corresponds to the JSON property `workerConfig`
|
1146
|
-
# @return [Google::Apis::CloudbuildV1alpha1::WorkerConfig]
|
1147
|
-
attr_accessor :worker_config
|
1148
|
-
|
1149
|
-
# Total number of workers to be created across all requested regions.
|
1150
|
-
# Corresponds to the JSON property `workerCount`
|
1151
|
-
# @return [Fixnum]
|
1152
|
-
attr_accessor :worker_count
|
1153
|
-
|
1154
|
-
def initialize(**args)
|
1155
|
-
update!(**args)
|
1156
|
-
end
|
1157
|
-
|
1158
|
-
# Update properties of this object
|
1159
|
-
def update!(**args)
|
1160
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
1161
|
-
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
1162
|
-
@name = args[:name] if args.key?(:name)
|
1163
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
1164
|
-
@regions = args[:regions] if args.key?(:regions)
|
1165
|
-
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
1166
|
-
@status = args[:status] if args.key?(:status)
|
1167
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
1168
|
-
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
1169
|
-
@worker_count = args[:worker_count] if args.key?(:worker_count)
|
1170
|
-
end
|
1171
|
-
end
|
1172
|
-
end
|
1173
|
-
end
|
1174
|
-
end
|