google-apis-cloudbuild_v2 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89e69d0631cd64830bceb034850dfe9ab0641db70532840b422ee50528510756
|
4
|
+
data.tar.gz: 62e4faeaed5233fc6c2db49bccadbf479c1f7b25432900cf20aeb0884d607ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cec8c479decfb1aad946df1f4e2cf0ab97289c71e6ba4312a121f6ebf4d4195de933ff0a716c41326e8df0003fecb432eabdb2aad92e66824226e05703b809
|
7
|
+
data.tar.gz: b1a7f3f7090a881797863eb8efd9c1fc79e8e1597d28c9a367b9317a01b896e5ca3247021167612fd1c28904548dd3176878e3190bd325ffcab4a56d812625c3
|
data/CHANGELOG.md
CHANGED
@@ -1043,6 +1043,31 @@ module Google
|
|
1043
1043
|
end
|
1044
1044
|
end
|
1045
1045
|
|
1046
|
+
# The response message for Locations.ListLocations.
|
1047
|
+
class ListLocationsResponse
|
1048
|
+
include Google::Apis::Core::Hashable
|
1049
|
+
|
1050
|
+
# A list of locations that matches the specified filter in the request.
|
1051
|
+
# Corresponds to the JSON property `locations`
|
1052
|
+
# @return [Array<Google::Apis::CloudbuildV2::Location>]
|
1053
|
+
attr_accessor :locations
|
1054
|
+
|
1055
|
+
# The standard List next-page token.
|
1056
|
+
# Corresponds to the JSON property `nextPageToken`
|
1057
|
+
# @return [String]
|
1058
|
+
attr_accessor :next_page_token
|
1059
|
+
|
1060
|
+
def initialize(**args)
|
1061
|
+
update!(**args)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Update properties of this object
|
1065
|
+
def update!(**args)
|
1066
|
+
@locations = args[:locations] if args.key?(:locations)
|
1067
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
1046
1071
|
# Message for response to listing Repositories.
|
1047
1072
|
class ListRepositoriesResponse
|
1048
1073
|
include Google::Apis::Core::Hashable
|
@@ -1068,6 +1093,53 @@ module Google
|
|
1068
1093
|
end
|
1069
1094
|
end
|
1070
1095
|
|
1096
|
+
# A resource that represents a Google Cloud location.
|
1097
|
+
class Location
|
1098
|
+
include Google::Apis::Core::Hashable
|
1099
|
+
|
1100
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
1101
|
+
# "Tokyo".
|
1102
|
+
# Corresponds to the JSON property `displayName`
|
1103
|
+
# @return [String]
|
1104
|
+
attr_accessor :display_name
|
1105
|
+
|
1106
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
1107
|
+
# region": "us-east1"`
|
1108
|
+
# Corresponds to the JSON property `labels`
|
1109
|
+
# @return [Hash<String,String>]
|
1110
|
+
attr_accessor :labels
|
1111
|
+
|
1112
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
1113
|
+
# Corresponds to the JSON property `locationId`
|
1114
|
+
# @return [String]
|
1115
|
+
attr_accessor :location_id
|
1116
|
+
|
1117
|
+
# Service-specific metadata. For example the available capacity at the given
|
1118
|
+
# location.
|
1119
|
+
# Corresponds to the JSON property `metadata`
|
1120
|
+
# @return [Hash<String,Object>]
|
1121
|
+
attr_accessor :metadata
|
1122
|
+
|
1123
|
+
# Resource name for the location, which may vary between implementations. For
|
1124
|
+
# example: `"projects/example-project/locations/us-east1"`
|
1125
|
+
# Corresponds to the JSON property `name`
|
1126
|
+
# @return [String]
|
1127
|
+
attr_accessor :name
|
1128
|
+
|
1129
|
+
def initialize(**args)
|
1130
|
+
update!(**args)
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
# Update properties of this object
|
1134
|
+
def update!(**args)
|
1135
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1136
|
+
@labels = args[:labels] if args.key?(:labels)
|
1137
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
1138
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1139
|
+
@name = args[:name] if args.key?(:name)
|
1140
|
+
end
|
1141
|
+
end
|
1142
|
+
|
1071
1143
|
# Represents an OAuth token of the account that authorized the Connection, and
|
1072
1144
|
# associated metadata.
|
1073
1145
|
class OAuthCredential
|
@@ -1501,6 +1573,12 @@ module Google
|
|
1501
1573
|
# @return [Array<Google::Apis::CloudbuildV2::PipelineTask>]
|
1502
1574
|
attr_accessor :finally_tasks
|
1503
1575
|
|
1576
|
+
# Output only. auto-generated yaml that is output only for display purpose for
|
1577
|
+
# workflows using pipeline_spec, used by UI/gcloud cli for Workflows.
|
1578
|
+
# Corresponds to the JSON property `generatedYaml`
|
1579
|
+
# @return [String]
|
1580
|
+
attr_accessor :generated_yaml
|
1581
|
+
|
1504
1582
|
# List of parameters.
|
1505
1583
|
# Corresponds to the JSON property `params`
|
1506
1584
|
# @return [Array<Google::Apis::CloudbuildV2::ParamSpec>]
|
@@ -1524,6 +1602,7 @@ module Google
|
|
1524
1602
|
# Update properties of this object
|
1525
1603
|
def update!(**args)
|
1526
1604
|
@finally_tasks = args[:finally_tasks] if args.key?(:finally_tasks)
|
1605
|
+
@generated_yaml = args[:generated_yaml] if args.key?(:generated_yaml)
|
1527
1606
|
@params = args[:params] if args.key?(:params)
|
1528
1607
|
@tasks = args[:tasks] if args.key?(:tasks)
|
1529
1608
|
@workspaces = args[:workspaces] if args.key?(:workspaces)
|
@@ -2179,11 +2258,6 @@ module Google
|
|
2179
2258
|
class TaskRef
|
2180
2259
|
include Google::Apis::Core::Hashable
|
2181
2260
|
|
2182
|
-
# Optional. The CustomTask definition to use.
|
2183
|
-
# Corresponds to the JSON property `customTask`
|
2184
|
-
# @return [String]
|
2185
|
-
attr_accessor :custom_task
|
2186
|
-
|
2187
2261
|
# Name of the task.
|
2188
2262
|
# Corresponds to the JSON property `name`
|
2189
2263
|
# @return [String]
|
@@ -2208,7 +2282,6 @@ module Google
|
|
2208
2282
|
|
2209
2283
|
# Update properties of this object
|
2210
2284
|
def update!(**args)
|
2211
|
-
@custom_task = args[:custom_task] if args.key?(:custom_task)
|
2212
2285
|
@name = args[:name] if args.key?(:name)
|
2213
2286
|
@params = args[:params] if args.key?(:params)
|
2214
2287
|
@resolver = args[:resolver] if args.key?(:resolver)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudbuildV2
|
18
18
|
# Version of the google-apis-cloudbuild_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230907"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -196,12 +196,24 @@ module Google
|
|
196
196
|
include Google::Apis::Core::JsonObjectSupport
|
197
197
|
end
|
198
198
|
|
199
|
+
class ListLocationsResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
199
205
|
class ListRepositoriesResponse
|
200
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
207
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
203
209
|
end
|
204
210
|
|
211
|
+
class Location
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
205
217
|
class OAuthCredential
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
219
|
|
@@ -694,6 +706,15 @@ module Google
|
|
694
706
|
end
|
695
707
|
end
|
696
708
|
|
709
|
+
class ListLocationsResponse
|
710
|
+
# @private
|
711
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
712
|
+
collection :locations, as: 'locations', class: Google::Apis::CloudbuildV2::Location, decorator: Google::Apis::CloudbuildV2::Location::Representation
|
713
|
+
|
714
|
+
property :next_page_token, as: 'nextPageToken'
|
715
|
+
end
|
716
|
+
end
|
717
|
+
|
697
718
|
class ListRepositoriesResponse
|
698
719
|
# @private
|
699
720
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -703,6 +724,17 @@ module Google
|
|
703
724
|
end
|
704
725
|
end
|
705
726
|
|
727
|
+
class Location
|
728
|
+
# @private
|
729
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
730
|
+
property :display_name, as: 'displayName'
|
731
|
+
hash :labels, as: 'labels'
|
732
|
+
property :location_id, as: 'locationId'
|
733
|
+
hash :metadata, as: 'metadata'
|
734
|
+
property :name, as: 'name'
|
735
|
+
end
|
736
|
+
end
|
737
|
+
|
706
738
|
class OAuthCredential
|
707
739
|
# @private
|
708
740
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -816,6 +848,7 @@ module Google
|
|
816
848
|
class Representation < Google::Apis::Core::JsonRepresentation
|
817
849
|
collection :finally_tasks, as: 'finallyTasks', class: Google::Apis::CloudbuildV2::PipelineTask, decorator: Google::Apis::CloudbuildV2::PipelineTask::Representation
|
818
850
|
|
851
|
+
property :generated_yaml, as: 'generatedYaml'
|
819
852
|
collection :params, as: 'params', class: Google::Apis::CloudbuildV2::ParamSpec, decorator: Google::Apis::CloudbuildV2::ParamSpec::Representation
|
820
853
|
|
821
854
|
collection :tasks, as: 'tasks', class: Google::Apis::CloudbuildV2::PipelineTask, decorator: Google::Apis::CloudbuildV2::PipelineTask::Representation
|
@@ -980,7 +1013,6 @@ module Google
|
|
980
1013
|
class TaskRef
|
981
1014
|
# @private
|
982
1015
|
class Representation < Google::Apis::Core::JsonRepresentation
|
983
|
-
property :custom_task, as: 'customTask'
|
984
1016
|
property :name, as: 'name'
|
985
1017
|
collection :params, as: 'params', class: Google::Apis::CloudbuildV2::Param, decorator: Google::Apis::CloudbuildV2::Param::Representation
|
986
1018
|
|
@@ -49,6 +49,79 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Gets information about a location.
|
53
|
+
# @param [String] name
|
54
|
+
# Resource name for the location.
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::CloudbuildV2::Location] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::CloudbuildV2::Location]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::CloudbuildV2::Location::Representation
|
75
|
+
command.response_class = Google::Apis::CloudbuildV2::Location
|
76
|
+
command.params['name'] = name unless name.nil?
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Lists information about the supported locations for this service.
|
83
|
+
# @param [String] name
|
84
|
+
# The resource that owns the locations collection, if applicable.
|
85
|
+
# @param [String] filter
|
86
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
88
|
+
# in [AIP-160](https://google.aip.dev/160).
|
89
|
+
# @param [Fixnum] page_size
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
91
|
+
# default.
|
92
|
+
# @param [String] page_token
|
93
|
+
# A page token received from the `next_page_token` field in the response. Send
|
94
|
+
# that page token to receive the subsequent page.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::CloudbuildV2::ListLocationsResponse] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::CloudbuildV2::ListLocationsResponse]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:get, 'v2/{+name}/locations', options)
|
114
|
+
command.response_representation = Google::Apis::CloudbuildV2::ListLocationsResponse::Representation
|
115
|
+
command.response_class = Google::Apis::CloudbuildV2::ListLocationsResponse
|
116
|
+
command.params['name'] = name unless name.nil?
|
117
|
+
command.query['filter'] = filter unless filter.nil?
|
118
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
119
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
124
|
+
|
52
125
|
# Creates a Connection.
|
53
126
|
# @param [String] parent
|
54
127
|
# Required. Project and location where the connection will be created. Format: `
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbuild_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v2/v0.2.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|