diff --git a/api_names_out.yaml b/api_names_out.yaml index c1ca8db38..3cdf69bf6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -42766,6 +42766,11 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest": google_privacy_dlp_v2beta1_analyze_data_source_risk_request "/dlp:v2beta1/GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest/privacyMetric": privacy_metric "/dlp:v2beta1/GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest/sourceTable": source_table +"/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable": google_privacy_dlp_v2beta1_auxiliary_table +"/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/quasiIds": quasi_ids +"/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/quasiIds/quasi_id": quasi_id +"/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/relativeFrequency": relative_frequency +"/dlp:v2beta1/GooglePrivacyDlpV2beta1AuxiliaryTable/table": table "/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryOptions": google_privacy_dlp_v2beta1_big_query_options "/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryOptions/identifyingFields": identifying_fields "/dlp:v2beta1/GooglePrivacyDlpV2beta1BigQueryOptions/identifyingFields/identifying_field": identifying_field @@ -42981,6 +42986,25 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1KAnonymityResult": google_privacy_dlp_v2beta1_k_anonymity_result "/dlp:v2beta1/GooglePrivacyDlpV2beta1KAnonymityResult/equivalenceClassHistogramBuckets": equivalence_class_histogram_buckets "/dlp:v2beta1/GooglePrivacyDlpV2beta1KAnonymityResult/equivalenceClassHistogramBuckets/equivalence_class_histogram_bucket": equivalence_class_histogram_bucket +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationConfig": google_privacy_dlp_v2beta1_k_map_estimation_config +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationConfig/auxiliaryTables": auxiliary_tables +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationConfig/auxiliaryTables/auxiliary_table": auxiliary_table +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationConfig/quasiIds": quasi_ids +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationConfig/quasiIds/quasi_id": quasi_id +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationConfig/regionCode": region_code +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket": google_privacy_dlp_v2beta1_k_map_estimation_histogram_bucket +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket/bucketSize": bucket_size +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket/bucketValues": bucket_values +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket/bucketValues/bucket_value": bucket_value +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket/maxAnonymity": max_anonymity +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket/minAnonymity": min_anonymity +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues": google_privacy_dlp_v2beta1_k_map_estimation_quasi_id_values +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues/estimatedAnonymity": estimated_anonymity +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues/quasiIdsValues": quasi_ids_values +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues/quasiIdsValues/quasi_ids_value": quasi_ids_value +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationResult": google_privacy_dlp_v2beta1_k_map_estimation_result +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationResult/kMapEstimationHistogram": k_map_estimation_histogram +"/dlp:v2beta1/GooglePrivacyDlpV2beta1KMapEstimationResult/kMapEstimationHistogram/k_map_estimation_histogram": k_map_estimation_histogram "/dlp:v2beta1/GooglePrivacyDlpV2beta1Key": google_privacy_dlp_v2beta1_key "/dlp:v2beta1/GooglePrivacyDlpV2beta1Key/partitionId": partition_id "/dlp:v2beta1/GooglePrivacyDlpV2beta1Key/path": path @@ -43061,12 +43085,16 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1PrivacyMetric": google_privacy_dlp_v2beta1_privacy_metric "/dlp:v2beta1/GooglePrivacyDlpV2beta1PrivacyMetric/categoricalStatsConfig": categorical_stats_config "/dlp:v2beta1/GooglePrivacyDlpV2beta1PrivacyMetric/kAnonymityConfig": k_anonymity_config +"/dlp:v2beta1/GooglePrivacyDlpV2beta1PrivacyMetric/kMapEstimationConfig": k_map_estimation_config "/dlp:v2beta1/GooglePrivacyDlpV2beta1PrivacyMetric/lDiversityConfig": l_diversity_config "/dlp:v2beta1/GooglePrivacyDlpV2beta1PrivacyMetric/numericalStatsConfig": numerical_stats_config "/dlp:v2beta1/GooglePrivacyDlpV2beta1Projection": google_privacy_dlp_v2beta1_projection "/dlp:v2beta1/GooglePrivacyDlpV2beta1Projection/property": property "/dlp:v2beta1/GooglePrivacyDlpV2beta1PropertyReference": google_privacy_dlp_v2beta1_property_reference "/dlp:v2beta1/GooglePrivacyDlpV2beta1PropertyReference/name": name +"/dlp:v2beta1/GooglePrivacyDlpV2beta1QuasiIdField": google_privacy_dlp_v2beta1_quasi_id_field +"/dlp:v2beta1/GooglePrivacyDlpV2beta1QuasiIdField/customTag": custom_tag +"/dlp:v2beta1/GooglePrivacyDlpV2beta1QuasiIdField/field": field "/dlp:v2beta1/GooglePrivacyDlpV2beta1Range": google_privacy_dlp_v2beta1_range "/dlp:v2beta1/GooglePrivacyDlpV2beta1Range/end": end "/dlp:v2beta1/GooglePrivacyDlpV2beta1Range/start": start @@ -43107,6 +43135,7 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult": google_privacy_dlp_v2beta1_risk_analysis_operation_result "/dlp:v2beta1/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult/categoricalStatsResult": categorical_stats_result "/dlp:v2beta1/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult/kAnonymityResult": k_anonymity_result +"/dlp:v2beta1/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult/kMapEstimationResult": k_map_estimation_result "/dlp:v2beta1/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult/lDiversityResult": l_diversity_result "/dlp:v2beta1/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult/numericalStatsResult": numerical_stats_result "/dlp:v2beta1/GooglePrivacyDlpV2beta1Row": google_privacy_dlp_v2beta1_row @@ -43127,6 +43156,11 @@ "/dlp:v2beta1/GooglePrivacyDlpV2beta1Table/rows/row": row "/dlp:v2beta1/GooglePrivacyDlpV2beta1TableLocation": google_privacy_dlp_v2beta1_table_location "/dlp:v2beta1/GooglePrivacyDlpV2beta1TableLocation/rowIndex": row_index +"/dlp:v2beta1/GooglePrivacyDlpV2beta1TaggedField": google_privacy_dlp_v2beta1_tagged_field +"/dlp:v2beta1/GooglePrivacyDlpV2beta1TaggedField/customTag": custom_tag +"/dlp:v2beta1/GooglePrivacyDlpV2beta1TaggedField/field": field +"/dlp:v2beta1/GooglePrivacyDlpV2beta1TaggedField/inferred": inferred +"/dlp:v2beta1/GooglePrivacyDlpV2beta1TaggedField/infoType": info_type "/dlp:v2beta1/GooglePrivacyDlpV2beta1TimePartConfig": google_privacy_dlp_v2beta1_time_part_config "/dlp:v2beta1/GooglePrivacyDlpV2beta1TimePartConfig/partToExtract": part_to_extract "/dlp:v2beta1/GooglePrivacyDlpV2beta1TransformationSummary": google_privacy_dlp_v2beta1_transformation_summary @@ -52102,6 +52136,47 @@ "/oauth2:v2/oauth2.userinfo.v2.me.get": get_userinfo_v2 "/oauth2:v2/quotaUser": quota_user "/oauth2:v2/userIp": user_ip +"/oslogin:v1/Empty": empty +"/oslogin:v1/ImportSshPublicKeyResponse": import_ssh_public_key_response +"/oslogin:v1/ImportSshPublicKeyResponse/loginProfile": login_profile +"/oslogin:v1/LoginProfile": login_profile +"/oslogin:v1/LoginProfile/name": name +"/oslogin:v1/LoginProfile/posixAccounts": posix_accounts +"/oslogin:v1/LoginProfile/posixAccounts/posix_account": posix_account +"/oslogin:v1/LoginProfile/sshPublicKeys": ssh_public_keys +"/oslogin:v1/LoginProfile/sshPublicKeys/ssh_public_key": ssh_public_key +"/oslogin:v1/LoginProfile/suspended": suspended +"/oslogin:v1/PosixAccount": posix_account +"/oslogin:v1/PosixAccount/accountId": account_id +"/oslogin:v1/PosixAccount/gecos": gecos +"/oslogin:v1/PosixAccount/gid": gid +"/oslogin:v1/PosixAccount/homeDirectory": home_directory +"/oslogin:v1/PosixAccount/primary": primary +"/oslogin:v1/PosixAccount/shell": shell +"/oslogin:v1/PosixAccount/systemId": system_id +"/oslogin:v1/PosixAccount/uid": uid +"/oslogin:v1/PosixAccount/username": username +"/oslogin:v1/SshPublicKey": ssh_public_key +"/oslogin:v1/SshPublicKey/expirationTimeUsec": expiration_time_usec +"/oslogin:v1/SshPublicKey/fingerprint": fingerprint +"/oslogin:v1/SshPublicKey/key": key +"/oslogin:v1/fields": fields +"/oslogin:v1/key": key +"/oslogin:v1/oslogin.users.getLoginProfile": get_user_login_profile +"/oslogin:v1/oslogin.users.getLoginProfile/name": name +"/oslogin:v1/oslogin.users.importSshPublicKey": import_user_ssh_public_key +"/oslogin:v1/oslogin.users.importSshPublicKey/parent": parent +"/oslogin:v1/oslogin.users.importSshPublicKey/projectId": project_id +"/oslogin:v1/oslogin.users.projects.delete": delete_user_project +"/oslogin:v1/oslogin.users.projects.delete/name": name +"/oslogin:v1/oslogin.users.sshPublicKeys.delete": delete_user_ssh_public_key +"/oslogin:v1/oslogin.users.sshPublicKeys.delete/name": name +"/oslogin:v1/oslogin.users.sshPublicKeys.get": get_user_ssh_public_key +"/oslogin:v1/oslogin.users.sshPublicKeys.get/name": name +"/oslogin:v1/oslogin.users.sshPublicKeys.patch": patch_user_ssh_public_key +"/oslogin:v1/oslogin.users.sshPublicKeys.patch/name": name +"/oslogin:v1/oslogin.users.sshPublicKeys.patch/updateMask": update_mask +"/oslogin:v1/quotaUser": quota_user "/oslogin:v1alpha/Empty": empty "/oslogin:v1alpha/ImportSshPublicKeyResponse": import_ssh_public_key_response "/oslogin:v1alpha/ImportSshPublicKeyResponse/loginProfile": login_profile diff --git a/generated/google/apis/dlp_v2beta1.rb b/generated/google/apis/dlp_v2beta1.rb index a95f875b1..e0268dc6f 100644 --- a/generated/google/apis/dlp_v2beta1.rb +++ b/generated/google/apis/dlp_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2beta1 VERSION = 'V2beta1' - REVISION = '20171114' + REVISION = '20171121' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dlp_v2beta1/classes.rb b/generated/google/apis/dlp_v2beta1/classes.rb index d068f1ecc..a6d33b2ad 100644 --- a/generated/google/apis/dlp_v2beta1/classes.rb +++ b/generated/google/apis/dlp_v2beta1/classes.rb @@ -179,6 +179,47 @@ module Google end end + # An auxiliary table contains statistical information on the relative + # frequency of different quasi-identifiers values. It has one or several + # quasi-identifiers columns, and one column that indicates the relative + # frequency of each quasi-identifier tuple. + # If a tuple is present in the data but not in the auxiliary table, the + # corresponding relative frequency is assumed to be zero (and thus, the + # tuple is highly reidentifiable). + class GooglePrivacyDlpV2beta1AuxiliaryTable + include Google::Apis::Core::Hashable + + # Quasi-identifier columns. [required] + # Corresponds to the JSON property `quasiIds` + # @return [Array] + attr_accessor :quasi_ids + + # General identifier of a data field in a storage service. + # Corresponds to the JSON property `relativeFrequency` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId] + attr_accessor :relative_frequency + + # Message defining the location of a BigQuery table. A table is uniquely + # identified by its project_id, dataset_id, and table_name. Within a query + # a table is often referenced with a string in the format of: + # `:.` or + # `..`. + # Corresponds to the JSON property `table` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable] + attr_accessor :table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @quasi_ids = args[:quasi_ids] if args.key?(:quasi_ids) + @relative_frequency = args[:relative_frequency] if args.key?(:relative_frequency) + @table = args[:table] if args.key?(:table) + end + end + # Options defining BigQuery table and row identifiers. class GooglePrivacyDlpV2beta1BigQueryOptions include Google::Apis::Core::Hashable @@ -1873,6 +1914,144 @@ module Google end end + # Reidentifiability metric. This corresponds to a risk model similar to what + # is called "journalist risk" in the literature, except the attack dataset is + # statistically modeled instead of being perfectly known. This can be done + # using publicly available data (like the US Census), or using a custom + # statistical model (indicated as one or several BigQuery tables), or by + # extrapolating from the distribution of values in the input dataset. + class GooglePrivacyDlpV2beta1KMapEstimationConfig + include Google::Apis::Core::Hashable + + # Several auxiliary tables can be used in the analysis. Each custom_tag + # used to tag a quasi-identifiers column must appear in exactly one column + # of one auxiliary table. + # Corresponds to the JSON property `auxiliaryTables` + # @return [Array] + attr_accessor :auxiliary_tables + + # Fields considered to be quasi-identifiers. No two columns can have the + # same tag. [required] + # Corresponds to the JSON property `quasiIds` + # @return [Array] + attr_accessor :quasi_ids + + # ISO 3166-1 alpha-2 region code to use in the statistical modeling. + # Required if no column is tagged with a region-specific InfoType (like + # US_ZIP_5) or a region code. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auxiliary_tables = args[:auxiliary_tables] if args.key?(:auxiliary_tables) + @quasi_ids = args[:quasi_ids] if args.key?(:quasi_ids) + @region_code = args[:region_code] if args.key?(:region_code) + end + end + + # A KMapEstimationHistogramBucket message with the following values: + # min_anonymity: 3 + # max_anonymity: 5 + # frequency: 42 + # means that there are 42 records whose quasi-identifier values correspond + # to 3, 4 or 5 people in the overlying population. An important particular + # case is when min_anonymity = max_anonymity = 1: the frequency field then + # corresponds to the number of uniquely identifiable records. + class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket + include Google::Apis::Core::Hashable + + # Number of records within these anonymity bounds. + # Corresponds to the JSON property `bucketSize` + # @return [Fixnum] + attr_accessor :bucket_size + + # Sample of quasi-identifier tuple values in this bucket. The total + # number of classes returned per bucket is capped at 20. + # Corresponds to the JSON property `bucketValues` + # @return [Array] + attr_accessor :bucket_values + + # Always greater than or equal to min_anonymity. + # Corresponds to the JSON property `maxAnonymity` + # @return [Fixnum] + attr_accessor :max_anonymity + + # Always positive. + # Corresponds to the JSON property `minAnonymity` + # @return [Fixnum] + attr_accessor :min_anonymity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket_size = args[:bucket_size] if args.key?(:bucket_size) + @bucket_values = args[:bucket_values] if args.key?(:bucket_values) + @max_anonymity = args[:max_anonymity] if args.key?(:max_anonymity) + @min_anonymity = args[:min_anonymity] if args.key?(:min_anonymity) + end + end + + # A tuple of values for the quasi-identifier columns. + class GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues + include Google::Apis::Core::Hashable + + # The estimated anonymity for these quasi-identifier values. + # Corresponds to the JSON property `estimatedAnonymity` + # @return [Fixnum] + attr_accessor :estimated_anonymity + + # The quasi-identifier values. + # Corresponds to the JSON property `quasiIdsValues` + # @return [Array] + attr_accessor :quasi_ids_values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @estimated_anonymity = args[:estimated_anonymity] if args.key?(:estimated_anonymity) + @quasi_ids_values = args[:quasi_ids_values] if args.key?(:quasi_ids_values) + end + end + + # Result of the reidentifiability analysis. Note that these results are an + # estimation, not exact values. + class GooglePrivacyDlpV2beta1KMapEstimationResult + include Google::Apis::Core::Hashable + + # The intervals [min_anonymity, max_anonymity] do not overlap. If a value + # doesn't correspond to any such interval, the associated frequency is + # zero. For example, the following records: + # `min_anonymity: 1, max_anonymity: 1, frequency: 17` + # `min_anonymity: 2, max_anonymity: 3, frequency: 42` + # `min_anonymity: 5, max_anonymity: 10, frequency: 99` + # mean that there are no record with an estimated anonymity of 4, 5, or + # larger than 10. + # Corresponds to the JSON property `kMapEstimationHistogram` + # @return [Array] + attr_accessor :k_map_estimation_histogram + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @k_map_estimation_histogram = args[:k_map_estimation_histogram] if args.key?(:k_map_estimation_histogram) + end + end + # A unique identifier for a Datastore entity. # If a key's partition ID or any of its path kinds or names are # reserved/read-only, the key is reserved/read-only. @@ -2483,6 +2662,16 @@ module Google # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityConfig] attr_accessor :k_anonymity_config + # Reidentifiability metric. This corresponds to a risk model similar to what + # is called "journalist risk" in the literature, except the attack dataset is + # statistically modeled instead of being perfectly known. This can be done + # using publicly available data (like the US Census), or using a custom + # statistical model (indicated as one or several BigQuery tables), or by + # extrapolating from the distribution of values in the input dataset. + # Corresponds to the JSON property `kMapEstimationConfig` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationConfig] + attr_accessor :k_map_estimation_config + # l-diversity metric, used for analysis of reidentification risk. # Corresponds to the JSON property `lDiversityConfig` # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityConfig] @@ -2502,6 +2691,7 @@ module Google def update!(**args) @categorical_stats_config = args[:categorical_stats_config] if args.key?(:categorical_stats_config) @k_anonymity_config = args[:k_anonymity_config] if args.key?(:k_anonymity_config) + @k_map_estimation_config = args[:k_map_estimation_config] if args.key?(:k_map_estimation_config) @l_diversity_config = args[:l_diversity_config] if args.key?(:l_diversity_config) @numerical_stats_config = args[:numerical_stats_config] if args.key?(:numerical_stats_config) end @@ -2546,6 +2736,32 @@ module Google end end + # A quasi-identifier column has a custom_tag, used to know which column + # in the data corresponds to which column in the statistical model. + class GooglePrivacyDlpV2beta1QuasiIdField + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `customTag` + # @return [String] + attr_accessor :custom_tag + + # General identifier of a data field in a storage service. + # Corresponds to the JSON property `field` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId] + attr_accessor :field + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_tag = args[:custom_tag] if args.key?(:custom_tag) + @field = args[:field] if args.key?(:field) + end + end + # Generic half-open interval [start, end) class GooglePrivacyDlpV2beta1Range include Google::Apis::Core::Hashable @@ -2850,6 +3066,12 @@ module Google # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityResult] attr_accessor :k_anonymity_result + # Result of the reidentifiability analysis. Note that these results are an + # estimation, not exact values. + # Corresponds to the JSON property `kMapEstimationResult` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationResult] + attr_accessor :k_map_estimation_result + # Result of the l-diversity computation. # Corresponds to the JSON property `lDiversityResult` # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityResult] @@ -2868,6 +3090,7 @@ module Google def update!(**args) @categorical_stats_result = args[:categorical_stats_result] if args.key?(:categorical_stats_result) @k_anonymity_result = args[:k_anonymity_result] if args.key?(:k_anonymity_result) + @k_map_estimation_result = args[:k_map_estimation_result] if args.key?(:k_map_estimation_result) @l_diversity_result = args[:l_diversity_result] if args.key?(:l_diversity_result) @numerical_stats_result = args[:numerical_stats_result] if args.key?(:numerical_stats_result) end @@ -3001,6 +3224,51 @@ module Google end end + # A column with a semantic tag attached. + class GooglePrivacyDlpV2beta1TaggedField + include Google::Apis::Core::Hashable + + # A column can be tagged with a custom tag. In this case, the user must + # indicate an auxiliary table that contains statistical information on + # the possible values of this column (below). + # Corresponds to the JSON property `customTag` + # @return [String] + attr_accessor :custom_tag + + # General identifier of a data field in a storage service. + # Corresponds to the JSON property `field` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId] + attr_accessor :field + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + # Corresponds to the JSON property `inferred` + # @return [Google::Apis::DlpV2beta1::GoogleProtobufEmpty] + attr_accessor :inferred + + # Type of information detected by the API. + # Corresponds to the JSON property `infoType` + # @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType] + attr_accessor :info_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_tag = args[:custom_tag] if args.key?(:custom_tag) + @field = args[:field] if args.key?(:field) + @inferred = args[:inferred] if args.key?(:inferred) + @info_type = args[:info_type] if args.key?(:info_type) + end + end + # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a # portion of the value. class GooglePrivacyDlpV2beta1TimePartConfig diff --git a/generated/google/apis/dlp_v2beta1/representations.rb b/generated/google/apis/dlp_v2beta1/representations.rb index f62614103..f5a6becbe 100644 --- a/generated/google/apis/dlp_v2beta1/representations.rb +++ b/generated/google/apis/dlp_v2beta1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2beta1AuxiliaryTable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2beta1BigQueryOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -370,6 +376,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2beta1KMapEstimationConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GooglePrivacyDlpV2beta1KMapEstimationResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2beta1Key class Representation < Google::Apis::Core::JsonRepresentation; end @@ -496,6 +526,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2beta1QuasiIdField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2beta1Range class Representation < Google::Apis::Core::JsonRepresentation; end @@ -604,6 +640,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GooglePrivacyDlpV2beta1TaggedField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GooglePrivacyDlpV2beta1TimePartConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -707,6 +749,18 @@ module Google end end + class GooglePrivacyDlpV2beta1AuxiliaryTable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :quasi_ids, as: 'quasiIds', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1QuasiIdField, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1QuasiIdField::Representation + + property :relative_frequency, as: 'relativeFrequency', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId::Representation + + property :table, as: 'table', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable::Representation + + end + end + class GooglePrivacyDlpV2beta1BigQueryOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1236,6 +1290,45 @@ module Google end end + class GooglePrivacyDlpV2beta1KMapEstimationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :auxiliary_tables, as: 'auxiliaryTables', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1AuxiliaryTable, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1AuxiliaryTable::Representation + + collection :quasi_ids, as: 'quasiIds', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TaggedField, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TaggedField::Representation + + property :region_code, as: 'regionCode' + end + end + + class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket_size, :numeric_string => true, as: 'bucketSize' + collection :bucket_values, as: 'bucketValues', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues::Representation + + property :max_anonymity, :numeric_string => true, as: 'maxAnonymity' + property :min_anonymity, :numeric_string => true, as: 'minAnonymity' + end + end + + class GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :estimated_anonymity, :numeric_string => true, as: 'estimatedAnonymity' + collection :quasi_ids_values, as: 'quasiIdsValues', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value::Representation + + end + end + + class GooglePrivacyDlpV2beta1KMapEstimationResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :k_map_estimation_histogram, as: 'kMapEstimationHistogram', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket::Representation + + end + end + class GooglePrivacyDlpV2beta1Key # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1430,6 +1523,8 @@ module Google property :k_anonymity_config, as: 'kAnonymityConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityConfig::Representation + property :k_map_estimation_config, as: 'kMapEstimationConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationConfig::Representation + property :l_diversity_config, as: 'lDiversityConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityConfig::Representation property :numerical_stats_config, as: 'numericalStatsConfig', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsConfig, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsConfig::Representation @@ -1452,6 +1547,15 @@ module Google end end + class GooglePrivacyDlpV2beta1QuasiIdField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_tag, as: 'customTag' + property :field, as: 'field', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId::Representation + + end + end + class GooglePrivacyDlpV2beta1Range # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1565,6 +1669,8 @@ module Google property :k_anonymity_result, as: 'kAnonymityResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityResult::Representation + property :k_map_estimation_result, as: 'kMapEstimationResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationResult::Representation + property :l_diversity_result, as: 'lDiversityResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityResult::Representation property :numerical_stats_result, as: 'numericalStatsResult', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsResult, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsResult::Representation @@ -1618,6 +1724,19 @@ module Google end end + class GooglePrivacyDlpV2beta1TaggedField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_tag, as: 'customTag' + property :field, as: 'field', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId::Representation + + property :inferred, as: 'inferred', class: Google::Apis::DlpV2beta1::GoogleProtobufEmpty, decorator: Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation + + property :info_type, as: 'infoType', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType::Representation + + end + end + class GooglePrivacyDlpV2beta1TimePartConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/oslogin_v1.rb b/generated/google/apis/oslogin_v1.rb new file mode 100644 index 000000000..fa48462c6 --- /dev/null +++ b/generated/google/apis/oslogin_v1.rb @@ -0,0 +1,37 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/oslogin_v1/service.rb' +require 'google/apis/oslogin_v1/classes.rb' +require 'google/apis/oslogin_v1/representations.rb' + +module Google + module Apis + # Google Cloud OS Login API + # + # Manages OS login configuration for Google account users. + # + # @see https://cloud.google.com/compute/docs/oslogin/rest/ + module OsloginV1 + VERSION = 'V1' + REVISION = '20171120' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View and manage your Google Compute Engine resources + AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute' + end + end +end diff --git a/generated/google/apis/oslogin_v1/classes.rb b/generated/google/apis/oslogin_v1/classes.rb new file mode 100644 index 000000000..a75d153e0 --- /dev/null +++ b/generated/google/apis/oslogin_v1/classes.rb @@ -0,0 +1,207 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module OsloginV1 + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A response message for importing an SSH public key. + class ImportSshPublicKeyResponse + include Google::Apis::Core::Hashable + + # The user profile information used for logging in to a virtual machine on + # Google Compute Engine. + # Corresponds to the JSON property `loginProfile` + # @return [Google::Apis::OsloginV1::LoginProfile] + attr_accessor :login_profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @login_profile = args[:login_profile] if args.key?(:login_profile) + end + end + + # The user profile information used for logging in to a virtual machine on + # Google Compute Engine. + class LoginProfile + include Google::Apis::Core::Hashable + + # The primary email address that uniquely identifies the user. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of POSIX accounts associated with the user. + # Corresponds to the JSON property `posixAccounts` + # @return [Array] + attr_accessor :posix_accounts + + # A map from SSH public key fingerprint to the associated key object. + # Corresponds to the JSON property `sshPublicKeys` + # @return [Hash] + attr_accessor :ssh_public_keys + + # Indicates if the user is suspended. A suspended user cannot log in but + # their profile information is retained. + # Corresponds to the JSON property `suspended` + # @return [Boolean] + attr_accessor :suspended + alias_method :suspended?, :suspended + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) + @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) + @suspended = args[:suspended] if args.key?(:suspended) + end + end + + # The POSIX account information associated with a Google account. + class PosixAccount + include Google::Apis::Core::Hashable + + # Output only. A POSIX account identifier. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # The GECOS (user information) entry for this account. + # Corresponds to the JSON property `gecos` + # @return [String] + attr_accessor :gecos + + # The default group ID. + # Corresponds to the JSON property `gid` + # @return [Fixnum] + attr_accessor :gid + + # The path to the home directory for this account. + # Corresponds to the JSON property `homeDirectory` + # @return [String] + attr_accessor :home_directory + + # Only one POSIX account can be marked as primary. + # Corresponds to the JSON property `primary` + # @return [Boolean] + attr_accessor :primary + alias_method :primary?, :primary + + # The path to the logic shell for this account. + # Corresponds to the JSON property `shell` + # @return [String] + attr_accessor :shell + + # System identifier for which account the username or uid applies to. + # By default, the empty value is used. + # Corresponds to the JSON property `systemId` + # @return [String] + attr_accessor :system_id + + # The user ID. + # Corresponds to the JSON property `uid` + # @return [Fixnum] + attr_accessor :uid + + # The username of the POSIX account. + # Corresponds to the JSON property `username` + # @return [String] + attr_accessor :username + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @gecos = args[:gecos] if args.key?(:gecos) + @gid = args[:gid] if args.key?(:gid) + @home_directory = args[:home_directory] if args.key?(:home_directory) + @primary = args[:primary] if args.key?(:primary) + @shell = args[:shell] if args.key?(:shell) + @system_id = args[:system_id] if args.key?(:system_id) + @uid = args[:uid] if args.key?(:uid) + @username = args[:username] if args.key?(:username) + end + end + + # The SSH public key information associated with a Google account. + class SshPublicKey + include Google::Apis::Core::Hashable + + # An expiration time in microseconds since epoch. + # Corresponds to the JSON property `expirationTimeUsec` + # @return [Fixnum] + attr_accessor :expiration_time_usec + + # Output only. The SHA-256 fingerprint of the SSH public key. + # Corresponds to the JSON property `fingerprint` + # @return [String] + attr_accessor :fingerprint + + # Public key text in SSH format, defined by + # RFC4253 + # section 6.6. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expiration_time_usec = args[:expiration_time_usec] if args.key?(:expiration_time_usec) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @key = args[:key] if args.key?(:key) + end + end + end + end +end diff --git a/generated/google/apis/oslogin_v1/representations.rb b/generated/google/apis/oslogin_v1/representations.rb new file mode 100644 index 000000000..d4d075a66 --- /dev/null +++ b/generated/google/apis/oslogin_v1/representations.rb @@ -0,0 +1,106 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module OsloginV1 + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImportSshPublicKeyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LoginProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosixAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SshPublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ImportSshPublicKeyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :login_profile, as: 'loginProfile', class: Google::Apis::OsloginV1::LoginProfile, decorator: Google::Apis::OsloginV1::LoginProfile::Representation + + end + end + + class LoginProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :posix_accounts, as: 'posixAccounts', class: Google::Apis::OsloginV1::PosixAccount, decorator: Google::Apis::OsloginV1::PosixAccount::Representation + + hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1::SshPublicKey, decorator: Google::Apis::OsloginV1::SshPublicKey::Representation + + property :suspended, as: 'suspended' + end + end + + class PosixAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :gecos, as: 'gecos' + property :gid, :numeric_string => true, as: 'gid' + property :home_directory, as: 'homeDirectory' + property :primary, as: 'primary' + property :shell, as: 'shell' + property :system_id, as: 'systemId' + property :uid, :numeric_string => true, as: 'uid' + property :username, as: 'username' + end + end + + class SshPublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expiration_time_usec, :numeric_string => true, as: 'expirationTimeUsec' + property :fingerprint, as: 'fingerprint' + property :key, as: 'key' + end + end + end + end +end diff --git a/generated/google/apis/oslogin_v1/service.rb b/generated/google/apis/oslogin_v1/service.rb new file mode 100644 index 000000000..9f349ec89 --- /dev/null +++ b/generated/google/apis/oslogin_v1/service.rb @@ -0,0 +1,263 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module OsloginV1 + # Google Cloud OS Login API + # + # Manages OS login configuration for Google account users. + # + # @example + # require 'google/apis/oslogin_v1' + # + # Oslogin = Google::Apis::OsloginV1 # Alias the module + # service = Oslogin::CloudOSLoginService.new + # + # @see https://cloud.google.com/compute/docs/oslogin/rest/ + class CloudOSLoginService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://oslogin.googleapis.com/', '') + @batch_path = 'batch' + end + + # Retrieves the profile information used for logging in to a virtual machine + # on Google Compute Engine. + # @param [String] name + # The unique ID for the user in format `users/`user``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::LoginProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::LoginProfile] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_login_profile(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/loginProfile', options) + command.response_representation = Google::Apis::OsloginV1::LoginProfile::Representation + command.response_class = Google::Apis::OsloginV1::LoginProfile + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Adds an SSH public key and returns the profile information. Default POSIX + # account information is set when no username and UID exist as part of the + # login profile. + # @param [String] parent + # The unique ID for the user in format `users/`user``. + # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object + # @param [String] project_id + # The project ID of the Google Cloud Platform project. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::ImportSshPublicKeyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::ImportSshPublicKeyResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}:importSshPublicKey', options) + command.request_representation = Google::Apis::OsloginV1::SshPublicKey::Representation + command.request_object = ssh_public_key_object + command.response_representation = Google::Apis::OsloginV1::ImportSshPublicKeyResponse::Representation + command.response_class = Google::Apis::OsloginV1::ImportSshPublicKeyResponse + command.params['parent'] = parent unless parent.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a POSIX account. + # @param [String] name + # A reference to the POSIX account to update. POSIX accounts are identified + # by the project ID they are associated with. A reference to the POSIX + # account is in format `users/`user`/projects/`project``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::OsloginV1::Empty::Representation + command.response_class = Google::Apis::OsloginV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an SSH public key. + # @param [String] name + # The fingerprint of the public key to update. Public keys are identified by + # their SHA-256 fingerprint. The fingerprint of the public key is in format + # `users/`user`/sshPublicKeys/`fingerprint``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::OsloginV1::Empty::Representation + command.response_class = Google::Apis::OsloginV1::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an SSH public key. + # @param [String] name + # The fingerprint of the public key to retrieve. Public keys are identified + # by their SHA-256 fingerprint. The fingerprint of the public key is in + # format `users/`user`/sshPublicKeys/`fingerprint``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::SshPublicKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::SshPublicKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::OsloginV1::SshPublicKey::Representation + command.response_class = Google::Apis::OsloginV1::SshPublicKey + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an SSH public key and returns the profile information. This method + # supports patch semantics. + # @param [String] name + # The fingerprint of the public key to update. Public keys are identified by + # their SHA-256 fingerprint. The fingerprint of the public key is in format + # `users/`user`/sshPublicKeys/`fingerprint``. + # @param [Google::Apis::OsloginV1::SshPublicKey] ssh_public_key_object + # @param [String] update_mask + # Mask to control which fields get updated. Updates all if not present. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1::SshPublicKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1::SshPublicKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_user_ssh_public_key(name, ssh_public_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::OsloginV1::SshPublicKey::Representation + command.request_object = ssh_public_key_object + command.response_representation = Google::Apis::OsloginV1::SshPublicKey::Representation + command.response_class = Google::Apis::OsloginV1::SshPublicKey + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end