google-api-client 0.40.0 → 0.40.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +53 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/classes.rb +5 -6
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
- data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +21 -2
- data/generated/google/apis/androidpublisher_v3/representations.rb +2 -0
- data/generated/google/apis/appsmarket_v2.rb +3 -3
- data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
- data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
- data/generated/google/apis/appsmarket_v2/service.rb +24 -39
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +14 -2
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +12 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +63 -99
- data/generated/google/apis/compute_alpha/representations.rb +14 -32
- data/generated/google/apis/compute_alpha/service.rb +37 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +51 -26
- data/generated/google/apis/compute_beta/representations.rb +3 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +5 -5
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +34 -0
- data/generated/google/apis/content_v2/representations.rb +16 -0
- data/generated/google/apis/content_v2/service.rb +5 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +357 -5
- data/generated/google/apis/content_v2_1/representations.rb +135 -0
- data/generated/google/apis/content_v2_1/service.rb +85 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +22 -22
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +23 -23
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +9 -29
- data/generated/google/apis/dialogflow_v2/representations.rb +0 -4
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -28
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -4
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +463 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +238 -0
- data/generated/google/apis/displayvideo_v1/service.rb +1718 -376
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +0 -1156
- data/generated/google/apis/file_v1/representations.rb +0 -381
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
- data/generated/google/apis/file_v1beta1/representations.rb +14 -376
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +3 -3
- data/generated/google/apis/healthcare_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
- data/generated/google/apis/healthcare_v1beta1/service.rb +3 -3
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +36 -5
- data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +100 -0
- data/generated/google/apis/people_v1/representations.rb +31 -0
- data/generated/google/apis/people_v1/service.rb +95 -2
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +15 -1
- data/generated/google/apis/pubsub_v1/representations.rb +12 -0
- data/generated/google/apis/pubsub_v1/service.rb +35 -1
- data/generated/google/apis/{dialogflow_v3alpha1.rb → recommender_v1.rb} +9 -13
- data/generated/google/apis/recommender_v1/classes.rb +505 -0
- data/generated/google/apis/recommender_v1/representations.rb +232 -0
- data/generated/google/apis/recommender_v1/service.rb +266 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +9 -0
- data/generated/google/apis/run_v1/representations.rb +1 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +97 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +97 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +32 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +3 -3
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +89 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +32 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +89 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +32 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
- data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +1 -2
- data/generated/google/apis/spanner_v1/service.rb +8 -8
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
- data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1/service.rb +32 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +12 -7
- data/lib/google/apis/options.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
- data/generated/google/apis/dialogflow_v3alpha1/service.rb +0 -296
@@ -24,42 +24,30 @@ module Google
|
|
24
24
|
|
25
25
|
class CustomerLicense
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Deletes
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Editions
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Expiries
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
45
|
|
34
46
|
include Google::Apis::Core::JsonObjectSupport
|
35
47
|
end
|
36
48
|
|
37
49
|
class LicenseNotification
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
class Delete
|
41
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
42
|
-
|
43
|
-
include Google::Apis::Core::JsonObjectSupport
|
44
|
-
end
|
45
|
-
|
46
|
-
class Expiry
|
47
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
48
|
-
|
49
|
-
include Google::Apis::Core::JsonObjectSupport
|
50
|
-
end
|
51
|
-
|
52
|
-
class Provision
|
53
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
54
|
-
|
55
|
-
include Google::Apis::Core::JsonObjectSupport
|
56
|
-
end
|
57
|
-
|
58
|
-
class Reassignment
|
59
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
60
|
-
|
61
|
-
include Google::Apis::Core::JsonObjectSupport
|
62
|
-
end
|
63
51
|
|
64
52
|
include Google::Apis::Core::JsonObjectSupport
|
65
53
|
end
|
@@ -70,6 +58,18 @@ module Google
|
|
70
58
|
include Google::Apis::Core::JsonObjectSupport
|
71
59
|
end
|
72
60
|
|
61
|
+
class Provisions
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Reassignments
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
73
|
class UserLicense
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
75
|
|
@@ -81,20 +81,36 @@ module Google
|
|
81
81
|
class Representation < Google::Apis::Core::JsonRepresentation
|
82
82
|
property :application_id, as: 'applicationId'
|
83
83
|
property :customer_id, as: 'customerId'
|
84
|
-
collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::
|
84
|
+
collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::Editions, decorator: Google::Apis::AppsmarketV2::Editions::Representation
|
85
85
|
|
86
86
|
property :id, as: 'id'
|
87
87
|
property :kind, as: 'kind'
|
88
88
|
property :state, as: 'state'
|
89
89
|
end
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
90
|
+
end
|
91
|
+
|
92
|
+
class Deletes
|
93
|
+
# @private
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
95
|
+
property :edition_id, as: 'editionId'
|
96
|
+
property :kind, as: 'kind'
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
class Editions
|
101
|
+
# @private
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
103
|
+
property :assigned_seats, as: 'assignedSeats'
|
104
|
+
property :edition_id, as: 'editionId'
|
105
|
+
property :seat_count, as: 'seatCount'
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class Expiries
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
property :edition_id, as: 'editionId'
|
113
|
+
property :kind, as: 'kind'
|
98
114
|
end
|
99
115
|
end
|
100
116
|
|
@@ -103,53 +119,18 @@ module Google
|
|
103
119
|
class Representation < Google::Apis::Core::JsonRepresentation
|
104
120
|
property :application_id, as: 'applicationId'
|
105
121
|
property :customer_id, as: 'customerId'
|
106
|
-
collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::
|
122
|
+
collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::Deletes, decorator: Google::Apis::AppsmarketV2::Deletes::Representation
|
107
123
|
|
108
|
-
collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::
|
124
|
+
collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::Expiries, decorator: Google::Apis::AppsmarketV2::Expiries::Representation
|
109
125
|
|
110
126
|
property :id, as: 'id'
|
111
127
|
property :kind, as: 'kind'
|
112
|
-
collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::
|
128
|
+
collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::Provisions, decorator: Google::Apis::AppsmarketV2::Provisions::Representation
|
113
129
|
|
114
|
-
collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::
|
130
|
+
collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::Reassignments, decorator: Google::Apis::AppsmarketV2::Reassignments::Representation
|
115
131
|
|
116
132
|
property :timestamp, :numeric_string => true, as: 'timestamp'
|
117
133
|
end
|
118
|
-
|
119
|
-
class Delete
|
120
|
-
# @private
|
121
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
122
|
-
property :edition_id, as: 'editionId'
|
123
|
-
property :kind, as: 'kind'
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
|
-
class Expiry
|
128
|
-
# @private
|
129
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
-
property :edition_id, as: 'editionId'
|
131
|
-
property :kind, as: 'kind'
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
class Provision
|
136
|
-
# @private
|
137
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
-
property :edition_id, as: 'editionId'
|
139
|
-
property :kind, as: 'kind'
|
140
|
-
property :seat_count, :numeric_string => true, as: 'seatCount'
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
class Reassignment
|
145
|
-
# @private
|
146
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
147
|
-
property :edition_id, as: 'editionId'
|
148
|
-
property :kind, as: 'kind'
|
149
|
-
property :type, as: 'type'
|
150
|
-
property :user_id, as: 'userId'
|
151
|
-
end
|
152
|
-
end
|
153
134
|
end
|
154
135
|
|
155
136
|
class LicenseNotificationList
|
@@ -162,6 +143,25 @@ module Google
|
|
162
143
|
end
|
163
144
|
end
|
164
145
|
|
146
|
+
class Provisions
|
147
|
+
# @private
|
148
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
149
|
+
property :edition_id, as: 'editionId'
|
150
|
+
property :kind, as: 'kind'
|
151
|
+
property :seat_count, :numeric_string => true, as: 'seatCount'
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class Reassignments
|
156
|
+
# @private
|
157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
158
|
+
property :edition_id, as: 'editionId'
|
159
|
+
property :kind, as: 'kind'
|
160
|
+
property :type, as: 'type'
|
161
|
+
property :user_id, as: 'userId'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
165
|
class UserLicense
|
166
166
|
# @private
|
167
167
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -23,36 +23,33 @@ module Google
|
|
23
23
|
# G Suite Marketplace API
|
24
24
|
#
|
25
25
|
# Lets your G Suite Marketplace applications integrate with Google's licensing
|
26
|
-
#
|
26
|
+
# and billing services.
|
27
27
|
#
|
28
28
|
# @example
|
29
29
|
# require 'google/apis/appsmarket_v2'
|
30
30
|
#
|
31
31
|
# Appsmarket = Google::Apis::AppsmarketV2 # Alias the module
|
32
|
-
# service = Appsmarket::
|
32
|
+
# service = Appsmarket::GSuiteMarketplaceAPIService.new
|
33
33
|
#
|
34
|
-
# @see https://developers.google.com/
|
35
|
-
class
|
34
|
+
# @see https://developers.google.com/apps-marketplace
|
35
|
+
class GSuiteMarketplaceAPIService < Google::Apis::Core::BaseService
|
36
36
|
# @return [String]
|
37
37
|
# API key. Your API key identifies your project and provides you with API access,
|
38
38
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
39
|
attr_accessor :key
|
40
40
|
|
41
41
|
# @return [String]
|
42
|
-
#
|
43
|
-
# characters.
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
44
|
attr_accessor :quota_user
|
45
45
|
|
46
|
-
# @return [String]
|
47
|
-
# Deprecated. Please use quotaUser instead.
|
48
|
-
attr_accessor :user_ip
|
49
|
-
|
50
46
|
def initialize
|
51
|
-
super('https://
|
52
|
-
@batch_path = 'batch
|
47
|
+
super('https://appsmarket.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
53
49
|
end
|
54
50
|
|
55
|
-
#
|
51
|
+
# Get the status of a license for a customer to determine if they have access
|
52
|
+
# for a given app.
|
56
53
|
# @param [String] application_id
|
57
54
|
# Application Id
|
58
55
|
# @param [String] customer_id
|
@@ -60,10 +57,8 @@ module Google
|
|
60
57
|
# @param [String] fields
|
61
58
|
# Selector specifying which fields to include in a partial response.
|
62
59
|
# @param [String] quota_user
|
63
|
-
#
|
64
|
-
# characters.
|
65
|
-
# @param [String] user_ip
|
66
|
-
# Deprecated. Please use quotaUser instead.
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
62
|
# @param [Google::Apis::RequestOptions] options
|
68
63
|
# Request-specific options
|
69
64
|
#
|
@@ -76,34 +71,29 @@ module Google
|
|
76
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
-
def get_customer_license(application_id, customer_id, fields: nil, quota_user: nil,
|
80
|
-
command = make_simple_command(:get, 'customerLicense/{applicationId}/{customerId}', options)
|
74
|
+
def get_customer_license(application_id, customer_id, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:get, 'appsmarket/v2/customerLicense/{applicationId}/{customerId}', options)
|
81
76
|
command.response_representation = Google::Apis::AppsmarketV2::CustomerLicense::Representation
|
82
77
|
command.response_class = Google::Apis::AppsmarketV2::CustomerLicense
|
83
78
|
command.params['applicationId'] = application_id unless application_id.nil?
|
84
79
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
85
80
|
command.query['fields'] = fields unless fields.nil?
|
86
81
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
88
82
|
execute_or_queue_command(command, &block)
|
89
83
|
end
|
90
84
|
|
91
|
-
#
|
85
|
+
# Get a list of licensing notifications with regards to a given app.
|
92
86
|
# @param [String] application_id
|
93
87
|
# Application Id
|
94
88
|
# @param [Fixnum] max_results
|
95
|
-
# Maximum number of results to return
|
96
89
|
# @param [String] start_token
|
97
|
-
# Pagination token
|
98
90
|
# @param [Fixnum] timestamp
|
99
91
|
# Timestamp in milliseconds since epoch
|
100
92
|
# @param [String] fields
|
101
93
|
# Selector specifying which fields to include in a partial response.
|
102
94
|
# @param [String] quota_user
|
103
|
-
#
|
104
|
-
# characters.
|
105
|
-
# @param [String] user_ip
|
106
|
-
# Deprecated. Please use quotaUser instead.
|
95
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
96
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
107
97
|
# @param [Google::Apis::RequestOptions] options
|
108
98
|
# Request-specific options
|
109
99
|
#
|
@@ -116,8 +106,8 @@ module Google
|
|
116
106
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
117
107
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
118
108
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
119
|
-
def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil,
|
120
|
-
command = make_simple_command(:get, 'licenseNotification/{applicationId}', options)
|
109
|
+
def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'appsmarket/v2/licenseNotification/{applicationId}', options)
|
121
111
|
command.response_representation = Google::Apis::AppsmarketV2::LicenseNotificationList::Representation
|
122
112
|
command.response_class = Google::Apis::AppsmarketV2::LicenseNotificationList
|
123
113
|
command.params['applicationId'] = application_id unless application_id.nil?
|
@@ -126,11 +116,10 @@ module Google
|
|
126
116
|
command.query['timestamp'] = timestamp unless timestamp.nil?
|
127
117
|
command.query['fields'] = fields unless fields.nil?
|
128
118
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
129
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
130
119
|
execute_or_queue_command(command, &block)
|
131
120
|
end
|
132
121
|
|
133
|
-
#
|
122
|
+
# Get the user's licensing status for their permission to use a given app.
|
134
123
|
# @param [String] application_id
|
135
124
|
# Application Id
|
136
125
|
# @param [String] user_id
|
@@ -138,10 +127,8 @@ module Google
|
|
138
127
|
# @param [String] fields
|
139
128
|
# Selector specifying which fields to include in a partial response.
|
140
129
|
# @param [String] quota_user
|
141
|
-
#
|
142
|
-
# characters.
|
143
|
-
# @param [String] user_ip
|
144
|
-
# Deprecated. Please use quotaUser instead.
|
130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
145
132
|
# @param [Google::Apis::RequestOptions] options
|
146
133
|
# Request-specific options
|
147
134
|
#
|
@@ -154,15 +141,14 @@ module Google
|
|
154
141
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
155
142
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
143
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
|
-
def get_user_license(application_id, user_id, fields: nil, quota_user: nil,
|
158
|
-
command = make_simple_command(:get, 'userLicense/{applicationId}/{userId}', options)
|
144
|
+
def get_user_license(application_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
|
145
|
+
command = make_simple_command(:get, 'appsmarket/v2/userLicense/{applicationId}/{userId}', options)
|
159
146
|
command.response_representation = Google::Apis::AppsmarketV2::UserLicense::Representation
|
160
147
|
command.response_class = Google::Apis::AppsmarketV2::UserLicense
|
161
148
|
command.params['applicationId'] = application_id unless application_id.nil?
|
162
149
|
command.params['userId'] = user_id unless user_id.nil?
|
163
150
|
command.query['fields'] = fields unless fields.nil?
|
164
151
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
165
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
166
152
|
execute_or_queue_command(command, &block)
|
167
153
|
end
|
168
154
|
|
@@ -171,7 +157,6 @@ module Google
|
|
171
157
|
def apply_command_defaults(command)
|
172
158
|
command.query['key'] = key unless key.nil?
|
173
159
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
174
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
175
160
|
end
|
176
161
|
end
|
177
162
|
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/cloud-build/docs/
|
26
26
|
module CloudbuildV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200601'
|
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'
|
@@ -357,6 +357,15 @@ module Google
|
|
357
357
|
# @return [Fixnum]
|
358
358
|
attr_accessor :disk_size_gb
|
359
359
|
|
360
|
+
# Option to specify whether or not to apply bash style string
|
361
|
+
# operations to the substitutions.
|
362
|
+
# NOTE: this is always enabled for triggered builds and cannot be
|
363
|
+
# overridden in the build configuration file.
|
364
|
+
# Corresponds to the JSON property `dynamicSubstitutions`
|
365
|
+
# @return [Boolean]
|
366
|
+
attr_accessor :dynamic_substitutions
|
367
|
+
alias_method :dynamic_substitutions?, :dynamic_substitutions
|
368
|
+
|
360
369
|
# A list of global environment variable definitions that will exist for all
|
361
370
|
# build steps in this build. If a variable is defined in both globally and in
|
362
371
|
# a build step, the variable will use the build step value.
|
@@ -403,6 +412,8 @@ module Google
|
|
403
412
|
|
404
413
|
# Option to specify behavior when there is an error in the substitution
|
405
414
|
# checks.
|
415
|
+
# NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
|
416
|
+
# be overridden in the build configuration file.
|
406
417
|
# Corresponds to the JSON property `substitutionOption`
|
407
418
|
# @return [String]
|
408
419
|
attr_accessor :substitution_option
|
@@ -432,6 +443,7 @@ module Google
|
|
432
443
|
# Update properties of this object
|
433
444
|
def update!(**args)
|
434
445
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
446
|
+
@dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions)
|
435
447
|
@env = args[:env] if args.key?(:env)
|
436
448
|
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
|
437
449
|
@logging = args[:logging] if args.key?(:logging)
|
@@ -1030,8 +1042,8 @@ module Google
|
|
1030
1042
|
# @return [String]
|
1031
1043
|
attr_accessor :branch
|
1032
1044
|
|
1033
|
-
# Configure builds to run
|
1034
|
-
#
|
1045
|
+
# Configure builds to run whether a repository owner or collaborator need to
|
1046
|
+
# comment `/gcbrun`.
|
1035
1047
|
# Corresponds to the JSON property `commentControl`
|
1036
1048
|
# @return [String]
|
1037
1049
|
attr_accessor :comment_control
|
@@ -285,6 +285,7 @@ module Google
|
|
285
285
|
# @private
|
286
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
287
287
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
288
|
+
property :dynamic_substitutions, as: 'dynamicSubstitutions'
|
288
289
|
collection :env, as: 'env'
|
289
290
|
property :log_streaming_option, as: 'logStreamingOption'
|
290
291
|
property :logging, as: 'logging'
|
@@ -703,6 +703,48 @@ module Google
|
|
703
703
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
704
704
|
execute_or_queue_command(command, &block)
|
705
705
|
end
|
706
|
+
|
707
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
708
|
+
# makes a best effort to cancel the operation, but success is not
|
709
|
+
# guaranteed. If the server doesn't support this method, it returns
|
710
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
711
|
+
# Operations.GetOperation or
|
712
|
+
# other methods to check whether the cancellation succeeded or whether the
|
713
|
+
# operation completed despite cancellation. On successful cancellation,
|
714
|
+
# the operation is not deleted; instead, it becomes an operation with
|
715
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
716
|
+
# corresponding to `Code.CANCELLED`.
|
717
|
+
# @param [String] name
|
718
|
+
# The name of the operation resource to be cancelled.
|
719
|
+
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
720
|
+
# @param [String] fields
|
721
|
+
# Selector specifying which fields to include in a partial response.
|
722
|
+
# @param [String] quota_user
|
723
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
724
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
725
|
+
# @param [Google::Apis::RequestOptions] options
|
726
|
+
# Request-specific options
|
727
|
+
#
|
728
|
+
# @yield [result, err] Result & error if block supplied
|
729
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
730
|
+
# @yieldparam err [StandardError] error object if request failed
|
731
|
+
#
|
732
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
733
|
+
#
|
734
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
735
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
736
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
737
|
+
def cancel_vbeta1_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
738
|
+
command = make_simple_command(:post, 'vbeta1/{+name}:cancel', options)
|
739
|
+
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
740
|
+
command.request_object = cancel_operation_request_object
|
741
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
742
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
743
|
+
command.params['name'] = name unless name.nil?
|
744
|
+
command.query['fields'] = fields unless fields.nil?
|
745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
746
|
+
execute_or_queue_command(command, &block)
|
747
|
+
end
|
706
748
|
|
707
749
|
protected
|
708
750
|
|