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.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -0
  3. data/generated/google/apis/admob_v1.rb +1 -1
  4. data/generated/google/apis/admob_v1/classes.rb +5 -6
  5. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  7. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  8. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  9. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  10. data/generated/google/apis/androidpublisher_v3/classes.rb +21 -2
  11. data/generated/google/apis/androidpublisher_v3/representations.rb +2 -0
  12. data/generated/google/apis/appsmarket_v2.rb +3 -3
  13. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  14. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  15. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +14 -2
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  19. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +12 -0
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  23. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +12 -0
  25. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  26. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  27. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  28. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  29. data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
  30. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  31. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
  32. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  33. data/generated/google/apis/compute_alpha.rb +1 -1
  34. data/generated/google/apis/compute_alpha/classes.rb +63 -99
  35. data/generated/google/apis/compute_alpha/representations.rb +14 -32
  36. data/generated/google/apis/compute_alpha/service.rb +37 -0
  37. data/generated/google/apis/compute_beta.rb +1 -1
  38. data/generated/google/apis/compute_beta/classes.rb +51 -26
  39. data/generated/google/apis/compute_beta/representations.rb +3 -0
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +5 -5
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +34 -0
  44. data/generated/google/apis/content_v2/representations.rb +16 -0
  45. data/generated/google/apis/content_v2/service.rb +5 -1
  46. data/generated/google/apis/content_v2_1.rb +1 -1
  47. data/generated/google/apis/content_v2_1/classes.rb +357 -5
  48. data/generated/google/apis/content_v2_1/representations.rb +135 -0
  49. data/generated/google/apis/content_v2_1/service.rb +85 -1
  50. data/generated/google/apis/dataproc_v1.rb +1 -1
  51. data/generated/google/apis/dataproc_v1/classes.rb +22 -22
  52. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  53. data/generated/google/apis/dataproc_v1beta2/classes.rb +23 -23
  54. data/generated/google/apis/dialogflow_v2.rb +1 -1
  55. data/generated/google/apis/dialogflow_v2/classes.rb +9 -29
  56. data/generated/google/apis/dialogflow_v2/representations.rb +0 -4
  57. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  58. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -28
  59. data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -4
  60. data/generated/google/apis/displayvideo_v1.rb +1 -1
  61. data/generated/google/apis/displayvideo_v1/classes.rb +463 -0
  62. data/generated/google/apis/displayvideo_v1/representations.rb +238 -0
  63. data/generated/google/apis/displayvideo_v1/service.rb +1718 -376
  64. data/generated/google/apis/file_v1.rb +1 -1
  65. data/generated/google/apis/file_v1/classes.rb +0 -1156
  66. data/generated/google/apis/file_v1/representations.rb +0 -381
  67. data/generated/google/apis/file_v1beta1.rb +1 -1
  68. data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
  69. data/generated/google/apis/file_v1beta1/representations.rb +14 -376
  70. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  71. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  72. data/generated/google/apis/fitness_v1.rb +1 -1
  73. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  74. data/generated/google/apis/games_v1.rb +1 -1
  75. data/generated/google/apis/healthcare_v1.rb +1 -1
  76. data/generated/google/apis/healthcare_v1/classes.rb +3 -3
  77. data/generated/google/apis/healthcare_v1/service.rb +3 -3
  78. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  79. data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
  80. data/generated/google/apis/healthcare_v1beta1/service.rb +3 -3
  81. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  82. data/generated/google/apis/memcache_v1beta2/classes.rb +36 -5
  83. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  84. data/generated/google/apis/people_v1.rb +1 -1
  85. data/generated/google/apis/people_v1/classes.rb +100 -0
  86. data/generated/google/apis/people_v1/representations.rb +31 -0
  87. data/generated/google/apis/people_v1/service.rb +95 -2
  88. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  89. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  90. data/generated/google/apis/pubsub_v1.rb +1 -1
  91. data/generated/google/apis/pubsub_v1/classes.rb +15 -1
  92. data/generated/google/apis/pubsub_v1/representations.rb +12 -0
  93. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  94. data/generated/google/apis/{dialogflow_v3alpha1.rb → recommender_v1.rb} +9 -13
  95. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  96. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  97. data/generated/google/apis/recommender_v1/service.rb +266 -0
  98. data/generated/google/apis/run_v1.rb +1 -1
  99. data/generated/google/apis/run_v1/classes.rb +9 -0
  100. data/generated/google/apis/run_v1/representations.rb +1 -0
  101. data/generated/google/apis/run_v1alpha1.rb +1 -1
  102. data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
  103. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  104. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  105. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  106. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  107. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +97 -0
  108. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
  109. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  110. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +97 -0
  111. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +32 -0
  112. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  113. data/generated/google/apis/servicecontrol_v1/classes.rb +3 -3
  114. data/generated/google/apis/serviceusage_v1.rb +1 -1
  115. data/generated/google/apis/serviceusage_v1/classes.rb +89 -0
  116. data/generated/google/apis/serviceusage_v1/representations.rb +32 -0
  117. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  118. data/generated/google/apis/serviceusage_v1beta1/classes.rb +89 -0
  119. data/generated/google/apis/serviceusage_v1beta1/representations.rb +32 -0
  120. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  121. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  122. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  123. data/generated/google/apis/spanner_v1.rb +1 -1
  124. data/generated/google/apis/spanner_v1/classes.rb +1 -2
  125. data/generated/google/apis/spanner_v1/service.rb +8 -8
  126. data/generated/google/apis/sql_v1beta4.rb +1 -1
  127. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  128. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  129. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  130. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  131. data/generated/google/apis/testing_v1.rb +1 -1
  132. data/generated/google/apis/testing_v1/classes.rb +2 -1
  133. data/generated/google/apis/videointelligence_v1.rb +1 -1
  134. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  135. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  136. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  137. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  138. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  139. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  140. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  141. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  142. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  143. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/lib/google/apis/core/api_command.rb +12 -7
  146. data/lib/google/apis/options.rb +5 -1
  147. data/lib/google/apis/version.rb +1 -1
  148. metadata +7 -7
  149. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
  150. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
  151. 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
- class Edition
29
- class Representation < Google::Apis::Core::JsonRepresentation; end
30
-
31
- include Google::Apis::Core::JsonObjectSupport
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::CustomerLicense::Edition, decorator: Google::Apis::AppsmarketV2::CustomerLicense::Edition::Representation
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
- class Edition
92
- # @private
93
- class Representation < Google::Apis::Core::JsonRepresentation
94
- property :assigned_seats, as: 'assignedSeats'
95
- property :edition_id, as: 'editionId'
96
- property :seat_count, as: 'seatCount'
97
- end
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::LicenseNotification::Delete, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Delete::Representation
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::LicenseNotification::Expiry, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Expiry::Representation
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::LicenseNotification::Provision, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Provision::Representation
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::LicenseNotification::Reassignment, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment::Representation
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
- # service
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::AppsmarketService.new
32
+ # service = Appsmarket::GSuiteMarketplaceAPIService.new
33
33
  #
34
- # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide
35
- class AppsmarketService < Google::Apis::Core::BaseService
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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
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://www.googleapis.com/', 'appsmarket/v2/')
52
- @batch_path = 'batch/appsmarket/v2'
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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
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, user_ip: nil, options: nil, &block)
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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
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, user_ip: nil, options: nil, &block)
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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
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, user_ip: nil, options: nil, &block)
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 = '20200520'
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 only when a repository owner or collaborator
1034
- # comments `/gcbrun`.
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