google-api-client 0.23.3 → 0.23.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +107 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
  6. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  9. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  10. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  11. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  12. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1.rb +1 -1
  14. data/generated/google/apis/admin_reports_v1.rb +1 -1
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analytics_v2_4.rb +1 -1
  18. data/generated/google/apis/analytics_v3.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  21. data/generated/google/apis/androidmanagement_v1/classes.rb +35 -0
  22. data/generated/google/apis/androidmanagement_v1/representations.rb +6 -0
  23. data/generated/google/apis/androidmanagement_v1/service.rb +4 -1
  24. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  25. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  26. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  27. data/generated/google/apis/androidpublisher_v2/classes.rb +45 -0
  28. data/generated/google/apis/androidpublisher_v2/representations.rb +17 -0
  29. data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
  30. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v3/classes.rb +45 -0
  32. data/generated/google/apis/androidpublisher_v3/representations.rb +17 -0
  33. data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
  34. data/generated/google/apis/appengine_v1beta.rb +1 -1
  35. data/generated/google/apis/appengine_v1beta/classes.rb +7 -0
  36. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  37. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  38. data/generated/google/apis/appengine_v1beta4/classes.rb +7 -0
  39. data/generated/google/apis/appengine_v1beta4/representations.rb +1 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +7 -0
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +1 -0
  43. data/generated/google/apis/appsactivity_v1.rb +1 -1
  44. data/generated/google/apis/appstate_v1.rb +1 -1
  45. data/generated/google/apis/bigquery_v2.rb +1 -1
  46. data/generated/google/apis/bigquery_v2/classes.rb +269 -0
  47. data/generated/google/apis/bigquery_v2/representations.rb +93 -0
  48. data/generated/google/apis/blogger_v2.rb +1 -1
  49. data/generated/google/apis/blogger_v3.rb +1 -1
  50. data/generated/google/apis/books_v1.rb +1 -1
  51. data/generated/google/apis/calendar_v3.rb +1 -1
  52. data/generated/google/apis/civicinfo_v2.rb +1 -1
  53. data/generated/google/apis/civicinfo_v2/classes.rb +16 -69
  54. data/generated/google/apis/civicinfo_v2/representations.rb +1 -11
  55. data/generated/google/apis/civicinfo_v2/service.rb +4 -1
  56. data/generated/google/apis/cloudiot_v1.rb +1 -1
  57. data/generated/google/apis/cloudiot_v1/classes.rb +0 -1
  58. data/generated/google/apis/cloudprofiler_v2.rb +40 -0
  59. data/generated/google/apis/cloudprofiler_v2/classes.rb +167 -0
  60. data/generated/google/apis/cloudprofiler_v2/representations.rb +77 -0
  61. data/generated/google/apis/cloudprofiler_v2/service.rb +179 -0
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -1
  64. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -1
  66. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -1
  68. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  69. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -1
  70. data/generated/google/apis/compute_alpha.rb +1 -1
  71. data/generated/google/apis/compute_alpha/classes.rb +769 -146
  72. data/generated/google/apis/compute_alpha/representations.rb +294 -22
  73. data/generated/google/apis/compute_alpha/service.rb +868 -18
  74. data/generated/google/apis/compute_beta.rb +1 -1
  75. data/generated/google/apis/compute_beta/classes.rb +52 -89
  76. data/generated/google/apis/compute_beta/representations.rb +1 -18
  77. data/generated/google/apis/compute_beta/service.rb +0 -250
  78. data/generated/google/apis/compute_v1.rb +1 -1
  79. data/generated/google/apis/compute_v1/classes.rb +165 -16
  80. data/generated/google/apis/compute_v1/representations.rb +61 -0
  81. data/generated/google/apis/compute_v1/service.rb +208 -0
  82. data/generated/google/apis/content_v2/classes.rb +10 -10
  83. data/generated/google/apis/content_v2sandbox.rb +1 -1
  84. data/generated/google/apis/content_v2sandbox/classes.rb +60 -43
  85. data/generated/google/apis/content_v2sandbox/representations.rb +2 -0
  86. data/generated/google/apis/customsearch_v1.rb +1 -1
  87. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  88. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  89. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  90. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  91. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  92. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  93. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  94. data/generated/google/apis/dialogflow_v2beta1/classes.rb +22 -0
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v1beta2.rb +1 -1
  97. data/generated/google/apis/dns_v2beta1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +101 -5
  102. data/generated/google/apis/drive_v2/representations.rb +23 -0
  103. data/generated/google/apis/drive_v2/service.rb +28 -25
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +101 -6
  106. data/generated/google/apis/drive_v3/representations.rb +23 -0
  107. data/generated/google/apis/drive_v3/service.rb +26 -22
  108. data/generated/google/apis/fitness_v1.rb +1 -1
  109. data/generated/google/apis/fusiontables_v1.rb +1 -1
  110. data/generated/google/apis/fusiontables_v2.rb +1 -1
  111. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  112. data/generated/google/apis/games_management_v1management.rb +1 -1
  113. data/generated/google/apis/games_v1.rb +1 -1
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  116. data/generated/google/apis/groupssettings_v1.rb +1 -1
  117. data/generated/google/apis/groupssettings_v1/classes.rb +84 -0
  118. data/generated/google/apis/groupssettings_v1/representations.rb +12 -0
  119. data/generated/google/apis/iam_v1.rb +1 -1
  120. data/generated/google/apis/iam_v1/classes.rb +0 -1
  121. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  122. data/generated/google/apis/licensing_v1.rb +1 -1
  123. data/generated/google/apis/mirror_v1.rb +1 -1
  124. data/generated/google/apis/ml_v1.rb +1 -1
  125. data/generated/google/apis/ml_v1/classes.rb +77 -6
  126. data/generated/google/apis/ml_v1/representations.rb +7 -0
  127. data/generated/google/apis/oauth2_v1.rb +1 -1
  128. data/generated/google/apis/oauth2_v2.rb +1 -1
  129. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  130. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  131. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  132. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  133. data/generated/google/apis/plus_domains_v1.rb +1 -1
  134. data/generated/google/apis/plus_v1.rb +1 -1
  135. data/generated/google/apis/pubsub_v1.rb +1 -1
  136. data/generated/google/apis/pubsub_v1/classes.rb +4 -5
  137. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  138. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -1
  139. data/generated/google/apis/replicapool_v1beta1.rb +1 -1
  140. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  141. data/generated/google/apis/reseller_v1.rb +1 -1
  142. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  143. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -1
  144. data/generated/google/apis/script_v1.rb +2 -8
  145. data/generated/google/apis/script_v1/service.rb +1 -7
  146. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  147. data/generated/google/apis/servicecontrol_v1/classes.rb +8 -0
  148. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  149. data/generated/google/apis/site_verification_v1.rb +1 -1
  150. data/generated/google/apis/slides_v1.rb +1 -1
  151. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  152. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  153. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -9
  154. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  155. data/generated/google/apis/sqladmin_v1beta4/service.rb +13 -16
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1beta1.rb +1 -1
  158. data/generated/google/apis/storage_v1beta2.rb +1 -1
  159. data/generated/google/apis/surveys_v2.rb +1 -1
  160. data/generated/google/apis/tagmanager_v1.rb +1 -1
  161. data/generated/google/apis/tagmanager_v2.rb +1 -1
  162. data/generated/google/apis/tasks_v1.rb +1 -1
  163. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  164. data/generated/google/apis/toolresults_v1beta3/classes.rb +6 -0
  165. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  166. data/generated/google/apis/urlshortener_v1.rb +1 -1
  167. data/generated/google/apis/webfonts_v1.rb +1 -1
  168. data/generated/google/apis/webmasters_v3.rb +1 -1
  169. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  170. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  171. data/generated/google/apis/youtube_v3.rb +1 -1
  172. data/lib/google/apis/version.rb +1 -1
  173. metadata +6 -2
@@ -0,0 +1,167 @@
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 CloudprofilerV2
24
+
25
+ # CreateProfileRequest describes a profile resource online creation request.
26
+ # The deployment field must be populated. The profile_type specifies the list
27
+ # of profile types supported by the agent. The creation call will hang until a
28
+ # profile of one of these types needs to be collected.
29
+ class CreateProfileRequest
30
+ include Google::Apis::Core::Hashable
31
+
32
+ # Deployment contains the deployment identification information.
33
+ # Corresponds to the JSON property `deployment`
34
+ # @return [Google::Apis::CloudprofilerV2::Deployment]
35
+ attr_accessor :deployment
36
+
37
+ # Profile resource.
38
+ # Corresponds to the JSON property `profile`
39
+ # @return [Google::Apis::CloudprofilerV2::Profile]
40
+ attr_accessor :profile
41
+
42
+ # One or more profile types that the agent is capable of providing.
43
+ # Corresponds to the JSON property `profileType`
44
+ # @return [Array<String>]
45
+ attr_accessor :profile_type
46
+
47
+ def initialize(**args)
48
+ update!(**args)
49
+ end
50
+
51
+ # Update properties of this object
52
+ def update!(**args)
53
+ @deployment = args[:deployment] if args.key?(:deployment)
54
+ @profile = args[:profile] if args.key?(:profile)
55
+ @profile_type = args[:profile_type] if args.key?(:profile_type)
56
+ end
57
+ end
58
+
59
+ # Deployment contains the deployment identification information.
60
+ class Deployment
61
+ include Google::Apis::Core::Hashable
62
+
63
+ # Labels identify the deployment within the user universe and same target.
64
+ # Validation regex for label names: `^[a-z0-9]([a-z0-9-]`0,61`[a-z0-9])?$`.
65
+ # Value for an individual label must be <= 512 bytes, the total
66
+ # size of all label names and values must be <= 1024 bytes.
67
+ # Label named "language" can be used to record the programming language of
68
+ # the profiled deployment. The standard choices for the value include "java",
69
+ # "go", "python", "ruby", "nodejs", "php", "dotnet".
70
+ # For deployments running on Google Cloud Platform, "zone" or "region" label
71
+ # should be present describing the deployment location. An example of a zone
72
+ # is "us-central1-a", an example of a region is "us-central1" or
73
+ # "us-central".
74
+ # Corresponds to the JSON property `labels`
75
+ # @return [Hash<String,String>]
76
+ attr_accessor :labels
77
+
78
+ # Project ID is the ID of a cloud project.
79
+ # Validation regex: `^a-z`4,61`[a-z0-9]$`.
80
+ # Corresponds to the JSON property `projectId`
81
+ # @return [String]
82
+ attr_accessor :project_id
83
+
84
+ # Target is the service name used to group related deployments:
85
+ # * Service name for GAE Flex / Standard.
86
+ # * Cluster and container name for GKE.
87
+ # * User-specified string for direct GCE profiling (e.g. Java).
88
+ # * Job name for Dataflow.
89
+ # Validation regex: `^[a-z]([-a-z0-9_.]`0,253`[a-z0-9])?$`.
90
+ # Corresponds to the JSON property `target`
91
+ # @return [String]
92
+ attr_accessor :target
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @labels = args[:labels] if args.key?(:labels)
101
+ @project_id = args[:project_id] if args.key?(:project_id)
102
+ @target = args[:target] if args.key?(:target)
103
+ end
104
+ end
105
+
106
+ # Profile resource.
107
+ class Profile
108
+ include Google::Apis::Core::Hashable
109
+
110
+ # Deployment contains the deployment identification information.
111
+ # Corresponds to the JSON property `deployment`
112
+ # @return [Google::Apis::CloudprofilerV2::Deployment]
113
+ attr_accessor :deployment
114
+
115
+ # Duration of the profiling session.
116
+ # Input (for the offline mode) or output (for the online mode).
117
+ # The field represents requested profiling duration. It may slightly differ
118
+ # from the effective profiling duration, which is recorded in the profile
119
+ # data, in case the profiling can't be stopped immediately (e.g. in case
120
+ # stopping the profiling is handled asynchronously).
121
+ # Corresponds to the JSON property `duration`
122
+ # @return [String]
123
+ attr_accessor :duration
124
+
125
+ # Input only. Labels associated to this specific profile. These labels will
126
+ # get merged with the deployment labels for the final data set. See
127
+ # documentation on deployment labels for validation rules and limits.
128
+ # Corresponds to the JSON property `labels`
129
+ # @return [Hash<String,String>]
130
+ attr_accessor :labels
131
+
132
+ # Output only. Opaque, server-assigned, unique ID for this profile.
133
+ # Corresponds to the JSON property `name`
134
+ # @return [String]
135
+ attr_accessor :name
136
+
137
+ # Input only. Profile bytes, as a gzip compressed serialized proto, the
138
+ # format is https://github.com/google/pprof/blob/master/proto/profile.proto.
139
+ # Corresponds to the JSON property `profileBytes`
140
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
141
+ # @return [String]
142
+ attr_accessor :profile_bytes
143
+
144
+ # Type of profile.
145
+ # For offline mode, this must be specified when creating the profile. For
146
+ # online mode it is assigned and returned by the server.
147
+ # Corresponds to the JSON property `profileType`
148
+ # @return [String]
149
+ attr_accessor :profile_type
150
+
151
+ def initialize(**args)
152
+ update!(**args)
153
+ end
154
+
155
+ # Update properties of this object
156
+ def update!(**args)
157
+ @deployment = args[:deployment] if args.key?(:deployment)
158
+ @duration = args[:duration] if args.key?(:duration)
159
+ @labels = args[:labels] if args.key?(:labels)
160
+ @name = args[:name] if args.key?(:name)
161
+ @profile_bytes = args[:profile_bytes] if args.key?(:profile_bytes)
162
+ @profile_type = args[:profile_type] if args.key?(:profile_type)
163
+ end
164
+ end
165
+ end
166
+ end
167
+ end
@@ -0,0 +1,77 @@
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 CloudprofilerV2
24
+
25
+ class CreateProfileRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Deployment
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Profile
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CreateProfileRequest
44
+ # @private
45
+ class Representation < Google::Apis::Core::JsonRepresentation
46
+ property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation
47
+
48
+ property :profile, as: 'profile', class: Google::Apis::CloudprofilerV2::Profile, decorator: Google::Apis::CloudprofilerV2::Profile::Representation
49
+
50
+ collection :profile_type, as: 'profileType'
51
+ end
52
+ end
53
+
54
+ class Deployment
55
+ # @private
56
+ class Representation < Google::Apis::Core::JsonRepresentation
57
+ hash :labels, as: 'labels'
58
+ property :project_id, as: 'projectId'
59
+ property :target, as: 'target'
60
+ end
61
+ end
62
+
63
+ class Profile
64
+ # @private
65
+ class Representation < Google::Apis::Core::JsonRepresentation
66
+ property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation
67
+
68
+ property :duration, as: 'duration'
69
+ hash :labels, as: 'labels'
70
+ property :name, as: 'name'
71
+ property :profile_bytes, :base64 => true, as: 'profileBytes'
72
+ property :profile_type, as: 'profileType'
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,179 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module CloudprofilerV2
23
+ # Stackdriver Profiler API
24
+ #
25
+ # Allows Google services manage the continuous profiling information.
26
+ #
27
+ # @example
28
+ # require 'google/apis/cloudprofiler_v2'
29
+ #
30
+ # Cloudprofiler = Google::Apis::CloudprofilerV2 # Alias the module
31
+ # service = Cloudprofiler::CloudProfilerService.new
32
+ #
33
+ # @see https://cloud.google.com/
34
+ class CloudProfilerService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://cloudprofiler.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # CreateProfile creates a new profile resource in the online mode.
51
+ # The server ensures that the new profiles are created at a constant rate per
52
+ # deployment, so the creation request may hang for some time until the next
53
+ # profile session is available.
54
+ # The request may fail with ABORTED error if the creation is not available
55
+ # within ~1m, the response will indicate the duration of the backoff the
56
+ # client should take before attempting creating a profile again. The backoff
57
+ # duration is returned in google.rpc.RetryInfo extension on the response
58
+ # status. To a gRPC client, the extension will be return as a
59
+ # binary-serialized proto in the trailing metadata item named
60
+ # "google.rpc.retryinfo-bin".
61
+ # @param [String] parent
62
+ # Parent project to create the profile in.
63
+ # @param [Google::Apis::CloudprofilerV2::CreateProfileRequest] create_profile_request_object
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::CloudprofilerV2::Profile] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::CloudprofilerV2::Profile]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def create_profile(parent, create_profile_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:post, 'v2/{+parent}/profiles', options)
83
+ command.request_representation = Google::Apis::CloudprofilerV2::CreateProfileRequest::Representation
84
+ command.request_object = create_profile_request_object
85
+ command.response_representation = Google::Apis::CloudprofilerV2::Profile::Representation
86
+ command.response_class = Google::Apis::CloudprofilerV2::Profile
87
+ command.params['parent'] = parent unless parent.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # CreateOfflineProfile creates a new profile resource in the offline mode.
94
+ # The client provides the profile to create along with the profile bytes, the
95
+ # server records it.
96
+ # @param [String] parent
97
+ # Parent project to create the profile in.
98
+ # @param [Google::Apis::CloudprofilerV2::Profile] profile_object
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::CloudprofilerV2::Profile] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::CloudprofilerV2::Profile]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def create_project_profile_offline(parent, profile_object = nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:post, 'v2/{+parent}/profiles:createOffline', options)
118
+ command.request_representation = Google::Apis::CloudprofilerV2::Profile::Representation
119
+ command.request_object = profile_object
120
+ command.response_representation = Google::Apis::CloudprofilerV2::Profile::Representation
121
+ command.response_class = Google::Apis::CloudprofilerV2::Profile
122
+ command.params['parent'] = parent unless parent.nil?
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # UpdateProfile updates the profile bytes and labels on the profile resource
129
+ # created in the online mode. Updating the bytes for profiles created in the
130
+ # offline mode is currently not supported: the profile content must be
131
+ # provided at the time of the profile creation.
132
+ # @param [String] name
133
+ # Output only. Opaque, server-assigned, unique ID for this profile.
134
+ # @param [Google::Apis::CloudprofilerV2::Profile] profile_object
135
+ # @param [String] update_mask
136
+ # Field mask used to specify the fields to be overwritten. Currently only
137
+ # profile_bytes and labels fields are supported by UpdateProfile, so only
138
+ # those fields can be specified in the mask. When no mask is provided, all
139
+ # fields are overwritten.
140
+ # @param [String] fields
141
+ # Selector specifying which fields to include in a partial response.
142
+ # @param [String] quota_user
143
+ # Available to use for quota purposes for server-side applications. Can be any
144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
145
+ # @param [Google::Apis::RequestOptions] options
146
+ # Request-specific options
147
+ #
148
+ # @yield [result, err] Result & error if block supplied
149
+ # @yieldparam result [Google::Apis::CloudprofilerV2::Profile] parsed result object
150
+ # @yieldparam err [StandardError] error object if request failed
151
+ #
152
+ # @return [Google::Apis::CloudprofilerV2::Profile]
153
+ #
154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
157
+ def patch_project_profile(name, profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
158
+ command = make_simple_command(:patch, 'v2/{+name}', options)
159
+ command.request_representation = Google::Apis::CloudprofilerV2::Profile::Representation
160
+ command.request_object = profile_object
161
+ command.response_representation = Google::Apis::CloudprofilerV2::Profile::Representation
162
+ command.response_class = Google::Apis::CloudprofilerV2::Profile
163
+ command.params['name'] = name unless name.nil?
164
+ command.query['updateMask'] = update_mask unless update_mask.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
170
+ protected
171
+
172
+ def apply_command_defaults(command)
173
+ command.query['key'] = key unless key.nil?
174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
175
+ end
176
+ end
177
+ end
178
+ end
179
+ end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180606'
29
+ REVISION = '20180709'
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'
@@ -184,7 +184,6 @@ module Google
184
184
 
185
185
  # Role that is assigned to `members`.
186
186
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
187
- # Required
188
187
  # Corresponds to the JSON property `role`
189
188
  # @return [String]
190
189
  attr_accessor :role
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20180606'
29
+ REVISION = '20180709'
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'